G
Guy X. Smiley
Hello! I'm trying to do some Word 2003 automation from JScript code embedded
in another application. My script opens and saves documents, does some
diffing and merging, plays with the tracked changes, etc.
My problem is that Word 2003 is crashing randomly, putting up its fancy bug
report dialog. Interestingly, when I stepped over my automation code slowly
in a script debugger, it worked. This led me to believe it has something to
do with JScript garbage collection.
I then trapped a crashed Word instance in a native debugger, and managed to
figure out with pretty good certainty that the crash happened inside a call
to IUnknown::Release(). This strengthened my suspicion that JScript garbage
collection was involved.
I've made sure I'm running the latest of everything: WinXP SP2, Office 2003
SP1, the latest Windows Script 5.6, etc., but the problem persists. Can
someone help?
in another application. My script opens and saves documents, does some
diffing and merging, plays with the tracked changes, etc.
My problem is that Word 2003 is crashing randomly, putting up its fancy bug
report dialog. Interestingly, when I stepped over my automation code slowly
in a script debugger, it worked. This led me to believe it has something to
do with JScript garbage collection.
I then trapped a crashed Word instance in a native debugger, and managed to
figure out with pretty good certainty that the crash happened inside a call
to IUnknown::Release(). This strengthened my suspicion that JScript garbage
collection was involved.
I've made sure I'm running the latest of everything: WinXP SP2, Office 2003
SP1, the latest Windows Script 5.6, etc., but the problem persists. Can
someone help?