Error Message: Mspaint Caused an Invalid Page Fault (185501)



The information in this article applies to:

  • Microsoft Windows 98
  • Microsoft Windows NT Server 4.0
  • Microsoft Windows NT Workstation 4.0

This article was previously published under Q185501
If this article does not describe the error message that you are receiving, view the following Microsoft Knowledge Base article to view more articles that describe error messages:

315854 Windows 98 and Windows Me Error Message Resource Center

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SYMPTOMS

When you attempt to start Microsoft Paint (Mspaint) or if you attempt to type text, click a font size on the Text toolbar, and then press ESC to close the Text toolbar, and then press ESC to close the Text toolbar, you may receive the following error message:
Mspaint caused an invalid page fault in module Mspaint.exe at 015f:010259e2.
If you click Close, you receive the following error message:
Mspaint caused an invalid page fault in module Mfc42.dll at 015f:5f4012b3.

RESOLUTION

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To resolve this problem:
  1. Click Start, click Run, type regedit in the Open box, and then press ENTER.
  2. Locate and click the following registry key:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Applets\Paint

  3. Right-click the registry key, and then click Delete.
This registry key is rebuilt the next time that you start Paint.

To prevent this problem from occurring, click Text Toolbar on the View menu to close the Text toolbar.

STATUS

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

MORE INFORMATION

This behavior can also occur if you open Paint and the Mspaint.exe program is in the wrong folder.

Modification Type:MinorLast Reviewed:12/16/2004
Keywords:kberrmsg kbInvalidPageFault kbprb KB185501