Word 2003 Crashes When Automated From JScript

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top