Word 2000 Slow to close on first run

T

tdk

Hi everyone

I have written a COM addin in VB for Microsoft Word that ads a simple
button bar and a button. When I install my addin and run word 2000 for
the first time all is fine and it works perfectly. When I close down
word I get a 60second pause before the application exits. If I run it a
second time etc. all is fine and I do not get a 60 second pause.

If I uninstall my addin and reinstall again then again then closing the
first instance of word takes 60 seconds longer than normal.

The same problem does not exist in word 2003 or word XP etc. e.g. later
versions.

Then 60 second hang is not in my code as I put in a crude message box
at the last point where the addin is unloading and this is before the
hang/pause happens.

Interestingly I ran Regmon on the winword to checkout to see what was
happening and just before the pause it tries to read a value DDETimeout
under the key
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Options. Which is
not found. I tried setting this to a DWORD value of 0 and 2 and some
others but it did not fix the problem. I'm not sure if the DDETimeout
variable is a red-herring or not but it seems like it might have
something to do with it.

I also ran filemon and monitored file access when closing it looked
pretty normal.

The problem is rather annoying because it looks like the first time you
run word after you install my addin that my addin has broken word.
Infact if you are patient enough to wait 60seconds all is OK.

Any help would be much appreciated.

Cheers
 

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