WD2000: Invalid Page Fault with Tasks.ExitWindows Command (220435)
The information in this article applies to:
This article was previously published under Q220435 SYMPTOMS
When you use the Word Visual Basic for Applications Tasks.ExitWindows command, Word may crash. You may receive the following error message:
In Microsoft Windows 2000
WINWORD.EXE has generated errors and will be closed by Windows. You will need to restart the program.
An error log is being created.
To view the error log, click Start, point to Search, and then click For Files or Folders. In the Search for files and folders named box, type drwtsn32.log and then click Search Now. After the file is found, right-click Drwtsn32 ( Drwtsn32.log), and then click Open on the shortcut menu that appears. In Microsoft Windows 95 or Windows 98
This program has performed an illegal operation and will be shut down.
If the problem persists, contact the program vendor.
When you click Details (on Microsoft Windows Millennium Edition, press ALT+D), you receive the following message: WINWORD caused an invalid page fault in WINWORD.EXE at 0167:305f3a7a.
NOTE: The actual memory address may vary.
In Microsoft Windows NT 4.0
An application error has occurred and an application error log is being
generated.
WINWORD.exe
Exception: access violation (0xc0000005, address:0x305f3a7a)
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
For more information about how to use the sample code in this article, click
the article number below to view the article in the Microsoft Knowledge
Base:
212536
OFF2000: How to Run Sample Code from Knowledge Base Articles
To work around this problem, use the following macro command:
Sub ExitMyWindows()
WordBasic.ExitWindows
End Sub
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 6/17/2005 |
---|
Keywords: | kbbug kbnofix KB220435 |
---|
|