S
simon
I'm using the Word object from VBA to open and save Word docs in text
format, and I get the error message 'There is not enough memory or
disk space to run Word' error appearing after processing between 50 and
400 docs but without any reproducibility - if I run the program over
the same group of docs the error will appear when trying to process a
different document. Once the error appears, I terminate Winword.exe
using TerminateProcess, but the error is produced for every subsequent
file processed. I've tried renaming Normal.dot, as suggested by
Microsoft for this problem in Word 2000, and also changing registry
settings for Data and Options but without success.
A virus checker is running on the machine, and no reports of the Nimda
virus are reported, as this can give spurious resource problem
messages.
As long as the VBA program is running, other instances of Word give the
same error message when opening any other document, but if I stop the
VBA program, Word opens other documents OK , but tells me me the file
caused a serious error last time it was opened if the 'Not enough
memory or disk' message appeared.
Putting the code which launches the Word object into a separate process
(ActiveX server) does not help - closing this process after the error
appears does not prevent the error from appearing .
format, and I get the error message 'There is not enough memory or
disk space to run Word' error appearing after processing between 50 and
400 docs but without any reproducibility - if I run the program over
the same group of docs the error will appear when trying to process a
different document. Once the error appears, I terminate Winword.exe
using TerminateProcess, but the error is produced for every subsequent
file processed. I've tried renaming Normal.dot, as suggested by
Microsoft for this problem in Word 2000, and also changing registry
settings for Data and Options but without success.
A virus checker is running on the machine, and no reports of the Nimda
virus are reported, as this can give spurious resource problem
messages.
As long as the VBA program is running, other instances of Word give the
same error message when opening any other document, but if I stop the
VBA program, Word opens other documents OK , but tells me me the file
caused a serious error last time it was opened if the 'Not enough
memory or disk' message appeared.
Putting the code which launches the Word object into a separate process
(ActiveX server) does not help - closing this process after the error
appears does not prevent the error from appearing .