FIX: Clear All Guides in Dialog Editor Causes Access Violation

Last reviewed: September 19, 1997
Article ID: Q145863
The information in this article applies to:

- The Resource Editor included with:

  - Microsoft Visual C++, 32-bit Edition, versions 4.0, 4.1, 4.2

SYMPTOMS

Choosing "Clear All" dialog guides inside the Visual C++ Dialog Editor can cause an access violation when saving the resource file or project. The error usually appears as a dialog that says:

  The instruction at "0x5025b287" referenced memory at "0x00000000".
  The memory could not be "read".

   Click "OK" to Terminate the Application
   Click "Cancel" to Debug the Application

The "Clear All" command is accessible through a right mouse click on the Dialog Editor's ruler controls. The ruler controls can be found to the left and top of the current dialog being edited in the dialog editor. They may optionally be turned on/off through the Layout menu's Guide Settings dialog.

RESOLUTION

This seems to only be a problem if there are no dialog guide settings saved with the project when "Clear All" is chosen.

This problem can be avoided by not choosing "Clear All" when there are currently no dialog guide settings saved in your project.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ version 5.0.

MORE INFORMATION

Steps to Reproduce the Problem

  1. Create a default AppWizard MDI application.

  2. Insert a new dialog by right-clicking the mouse in the Resource View.

  3. "Clear All" dialog box guide settings by right-clicking the Dialog Editor's ruler control.

  4. Choose "Save All" from the file menu or toolbar icon.

At this point, Visual C++ will generate an access violation.

If you were to set a dialog guide in the ruler control and choose "Save All" between steps 2 and 3 (above) then you wouldn't get an access violation.


Additional query words: gpfault gpf NULL

Keywords : AppStudioIss vcbuglist400 vcfixlist500 kbtool
Version : 4.0 4.1 4.2
Platform : NT WINDOWS
Issue type : kbbug
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.