PRJ4: Deleted Object Causes General Protection (GP) Fault

ID: Q135013

The information in this article applies to:

SYMPTOMS

When you click the right mouse button to delete an object while a macro that uses the DrawCreate and DrawProperties methods is running, you may receive a general protection (GP) fault.

CAUSE

When a Microsoft Project macro is running, a user may want to create a drawing on the Gantt Chart, and then display its properties. (Note that user interaction is allowed when a macro is running--which allows the user to draw the object.)

However, if the user activates an existing object by using the right mouse button, the object's shortcut menu will be displayed and the macro will be paused. After the menu command is finished, the macro will continue with the next statement. However, if you use the Delete command to delete the object, the DrawingProperties method attempts to display properties of an object that no longer exists.

STATUS

Microsoft has confirmed this to be a problem in the 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.

Additional query words: 4.00 error crash hang gpf

Keywords          : kbcode kbprg
Version           : 4.0
Platform          : WINDOWS

Last Reviewed: November 25, 1997