FIX: Run-time Macro Errors Cause Developer Studio to Crash

Article translations Article translations
Article ID: 193478 - View products that this article applies to.
This article was previously published under Q193478
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

SYMPTOMS

After receiving a run-time exception from a macro, a fatal error message appears and Developer Studio shuts down.

CAUSE

A code bug attempts to delete a run-time exception object twice.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

MORE INFORMATION

Steps to Reproduce Behavior

First save and close all projects and files. Then create a macro that will generate a run-time exception as follows:
  1. On the Tools menu, click Macro.
  2. In the Macro dialog box, type TestMacro in the Macro Name edit box.
  3. Click Edit.
  4. When the Add Macro dialog box appears, click OK.
  5. The current .dsm macro file opens. The cursor is positioned in the body of the TestMacro procedure. Type ActiveProject = 1 there.
  6. On the File menu, click Save.
To execute the macro:
  1. On the Tools menu, click Macro. A message might appear asking if you want to reload macros. Click Yes.
  2. Select TestMacro in the Macro Name list, and click Run.
  3. A macro exception appears. Click No.
  4. Repeat steps one through four until a fatal error occurs.

Properties

Article ID: 193478 - Last Review: February 23, 2014 - Revision: 1.2
APPLIES TO
  • Microsoft Visual Studio 6.0 Enterprise Edition
  • Microsoft Visual Studio 97 Service Pack 3
  • Microsoft Visual C++ 5.0 Enterprise Edition
  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++ 5.0 Professional Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
  • Microsoft Visual InterDev 1.0 Standard Edition
  • Microsoft Visual J++ 1.0 Standard Edition
  • Microsoft Visual J++ 1.1 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix kbide kbvc600fix kbdevstudio kbdsstools kbvs600sp3fix KB193478

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com