PRJ4: GP Fault Using Replace While Debugging Macro |
Q126814
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.
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.
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.
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.
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:
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.You'll have to restart after this edit - proceed anyway?
For more information about the Debug Window or Debugging, choose the Search button in the Visual Basic Reference and type:
debugging
Additional query words: gpf
Keywords : kbcode kbprg kbofficeprog
Issue type :
Technology :
|
Last Reviewed: March 29, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |