Microsoft KB Archive/220435

From BetaArchive Wiki

Article ID: 220435

Article Last Modified on 6/17/2005



APPLIES TO

  • Microsoft Word 2000 Standard Edition



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)

WORKAROUND

Microsoft 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
                

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

The ExitWindows method closes all open programs, quits Microsoft Windows, and logs the current user off. This method does not save changes to open Word documents or macros; however, it does prompt you to save changes to open documents in other Windows-based programs. This method is not available on the Macintosh.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

201971 WD2000: How to Quit Windows from Word Using ExitWindows



Additional query words: pra

Keywords: kbbug kbnofix KB220435