How to increase PythonWin v2.0: COM browser limits?
Mark Hammond
MarkH at ActiveState.com
Wed Mar 21 19:10:45 EST 2001
Ben Hutchings wrote:
> In fact, by adding a print statement to the loop that's iterating over
> the categories to add them to the tree, I discovered that it yields
> more or less the same results as OLEView (a similar program available
> from Microsoft). The exception is only raised after these results
> have been returned.
Ahh - excellent. Thats for tracking that down - it has always worked for me.
Does the following patch solve the problem?
Index: combrowse.py
===================================================================
RCS file: /home/cvsroot/PyWin32/com/win32com/client/combrowse.py,v
retrieving revision 1.4
diff -r1.4 combrowse.py
101,102c101,106
< for catid, lcid, desc in enum:
< ret.append(HLICategory((catid, lcid, desc)))
---
> try:
> for catid, lcid, desc in enum:
> ret.append(HLICategory((catid, lcid, desc)))
> except pythoncom.com_error:
> # Registered categories occasionally seem to give spurious errors.
> pass # Use what we already have.
Mark.
More information about the Python-list
mailing list