Suraj Barkale schrieb: > Hi, > I have been using a script which extracts data from a word > document. However, the script suddenly stopped working. Following > sequence of command reproduces the problem I am facing. Once I get the > "ValueError" exception, any further operations on Find object result > in a segfault. I do not know what all has changed on my machine since > I ran the script in the past. I tried reinstalling comtypes & python > to no avail. I am using comtypes version 0.4.2. Can somebody give my > any advice on finding out root cause of the problem?
I can repro the behaviour, but it seems that *any* operation on the Find object fails - either with a ValueError similar to what you get (the number of bytes in excess is different), with an AccessViolation, or even with a Python fatal error. Can you do any sucessfull operations on the Find object? I have no idea if it worked better in the past, there is no unittest using the Find object, and I don't use word via COM myself. The behaviour looks like the generated code would be wrong (there was such an issue in the past), but at first inspection I cannot find what's wrong. Can you try out if any older comtypes version works better? Thanks, Thomas ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users