Word 2002 >> Method oDocument.close >> crash

R

rolf schoepfer

Hi we wrote some VBA script for Word templates. It works on W97 and
W2000 without any problems but W2002 seems to have a real bug. We
traced down the problem and found that closing a previous opened
Document crashes Word 2002. You can try the following script in
Normal.dot:


Sub AutoNew()
set oTemplate = Documents.Open("C:/test.doc", ReadOnly:=True,
Revert:=False)
MsgBox "try to close document test.doc..."
oTemplate.Close SaveChanges:=wdDoNotDaveChanges
End

and here how to produce the crash:

- create an empty word document under c:\ and name it "test.doc"
- open Word 2002
- File >> New >> general templates >> blank document
- you will see the message box "try to close document test.doc..."
- click ok and Word 2002 will crash

things to mention:

- if we choose "Recover my work and restart Microsoft Word" Word
starts by itself and now creating new Documents works perfectly
- create a new Document with <ctrl> - n doesn't crash at all
(strange..)
- we are not sure, if there could be some problems caused by McAffe.
We did turn off all scannings first and after that we removed the
Antivirus Package. But we still have the same crashes. It might be
possible, that McAffe has altered some dll's or important registry
entries


I'm very happy to get some feedback. Other's face the same problem?

Thanx

Rolf Schöpfer
 

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