PRJ4: GP Fault Using Replace While Debugging Macro

Last reviewed: November 24, 1997
Article ID: Q126814
The information in this article applies to:
  • Microsoft Project for Windows, version 4.0

SYMPTOMS

In Microsoft Project, if you use the Replace dialog box while you are debugging a macro in the Debug window, you may receive a general protection (GP) fault.

CAUSE

This behavior occurs when you use the Step Into command or a Stop statement in your macro to display your macro in the Debug window. When your macro is displayed in the Debug window under these conditions, the Replace command is not available on the Edit menu. This is by design. However, if you choose Find from the Edit menu, the Replace button is available. If you use the Replace button to replace text in your macro while it is displayed in the Debug window, you receive a GP fault.

Note that when you display your macro in the Debug window by choosing Debug Window from the View menu, the Replace command IS available on the Edit menu, and you can replace text in the Debug window without receiving a GP fault. Replacing text in your macro does not cause a problem in this case, because the macro is not running at the time.

WORKAROUNDS

To use the Replace feature in Microsoft Project to replace text in your macro, view your macro in the normal editing mode, not in the Debug window, and then use the Replace command to replace the desired text.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Note that when you modify the text in your macro while you are debugging the macro (that is, you used the Step Into command or a Stop statement in your macro to display the Debug window), you receive the following message:

   You'll have to restart after this edit - proceed anyway?

However, when you display your macro in the Debug window by choosing Debug Window from the View menu, you can edit the text in the macro without receiving this message.

REFERENCES

For more information about the Debug Window or Debugging, choose the Search button in the Visual Basic Reference and type:

   debugging


Additional query words: 4.00 gpf
Keywords : kbcode kbprg
Version : 4.0
Platform : WINDOWS
Issue type : kberrmsg


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: November 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.