Microsoft KB Archive/126814

{|
 * width="100%"|

PRJ4: GP Fault Using Replace While Debugging Macro

 * }

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.