Page Fault in KERNEL32.DLL When You Open or Create a Document

ID: Q146059


The information in this article applies to:


SYMPTOMS

When you use the Office Shortcut Bar or the Start menu to open or to create a Word document, you receive the following message:

This program has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor.
If you click Details, you receive an error message similar to the following:
MSOW caused an invalid page fault in module KERNEL32.DLL at 0137:bff782ae.


CAUSE

This problem occurs when you do either of the following:

This behavior occurs after you install any program that inserts a complex DDEExec command in the following entries in the registry:

   HKEY_LOCAL_MACHINE\Software\Classes\Word.Backup\Shell\Open\DDEEXEC 

-or-

   HKEY_LOCAL_MACHINE\Software\Classes\Word.Backup\Shell\New\DDEEXEC 

Several programs, including the Microsoft Macro Virus Protection tool (also called the Scanprot template), modify the DDEEXEC entry in the registry.


RESOLUTION

To correct the problem that occurs when you use the Start menu or the Office Shortcut Bar to open a document or to create a new document, do the following:

  1. Open Windows Explorer. Locate and double-click the Winword7.reg file to re-register Word.


  2. Start Word.


  3. Click Open A Document or Start A New Document on the Office Shortcut Bar. This resets the application settings in the Office Shortcut Bar.


  4. Close Word.


You can now choose Open A Document or Start A New Document on the Office Shortcut Bar.


WORKAROUND

You can work around the problem that occurs when you use the Start menu or the Office Shortcut Bar to open a document; however, no workaround exists for when you create a new Word document. Instead you must create a new Word document from within Word.

To create a new Word document, do the following:

  1. Start Word.


  2. On the File menu, click New, and then double-click a template.


To work around the problem that occurs when you open a document, use the following steps:
  1. Click the Start button, point to Programs, and then click Windows Explorer.


  2. On the View menu, click Options, and then click the File Types tab.


  3. Under Registered File Types, click Microsoft Word Document, and then click Edit.


  4. In the Edit File Type dialog box under Actions, click Open, and then click Edit.


  5. Delete the complex command in the DDE Message box and type the following text:


  6. [FileOpen("%1")]
  7. Click OK.


  8. Click Close, and then click Close again to close the Options dialog box.


NOTE: Word may not run when you open a Word document after you use this workaround, and the following message may appear:
Word cannot open the document. (<Folder Location>)
If you click OK, the following message appears:
The document name or path is not valid. (<Folder Location><Document Name>).
If you click OK again, the document opens successfully.


STATUS

Microsoft has confirmed this to be a problem in Microsoft Office for Windows 95, version 7.0. This problem was corrected in Microsoft Office for Windows 95, version 7.0b.


MORE INFORMATION

The problem occurs when you use the Office Shortcut Bar or the Start menu to open or to create a new document. The Msow.exe module controls the Open and New commands on the Office Shortcut Bar and the Start menu; however, the Msow.exe does not understand the complex DDEExec message that is written in the registry.

For additional information regarding the Microsoft Macro Virus Protection tool, please see the following article in the Microsoft Knowledge Base:

Q134728 AppNote: "Macro Virus Protection Tool" (WD1215)
You can successfully open a Word document by using either of the following methods: A complex DDEExec command is a DDEExec command for FileOpen or FileNew that contains If...Then...Else statements. The following command is the default FileNew DDEExec command:
[FileNew("%1")]

Additional query words: OSB OFF7 XL7 scanprot.dot ipf gpf


Keywords          : offwin 
Version           : WINDOWS:7.0
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: April 20, 1999