FIX: Opening a DSP or DSW File in Explorer Crashes Visual C++ (238341)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
This article was previously published under Q238341 SYMPTOMS
Double-clicking or pressing the return key with a project file (.dsp) or a workspace file (.dsw) selected in Windows Explorer causes Visual C++ to crash with the following error:
The instruction at "0x50c2b90d" referenced memory at "0x00000000". The memory could not be "read".
NOTE: The addresses in the error message may vary depending on the operating system and the service pack installed.
CAUSE
This problem occurs when you have a macro file (.dsm) loaded in the Visual C++ integrated development environment.
RESOLUTION
When opening projects or workspaces from Windows Explorer, Dynamic Data Exchange (DDE) is used to open these files in a currently running instance of Visual C++. If Visual C++ is not running, the program will start if you double-click a .dsp or .dsw file. The presence of a macro file interferes with DDE, thereby causing this crash. Follow these steps to turn off this feature for the .dsp and .dsw file extensions:
- Start Windows Explorer.
- From the View menu, select Folder Options. (If you are using Windows 2000, then View is found under the Tools menu.)
- Click the File Types tab.
- Under Registered File Types, select Project File, and then click Edit. (In Windows 2000, click Advanced.)
- Select Open with MSDEV from the Actions list, and then click Edit.
- Clear the Use DDE checkbox and click OK.
For the .dsw file extension, repeat the above steps except in Step 4 select Project Workspace.
If you want to reverse the changes you made using the above steps, then do the following:
- Follow the first six steps described above.
- Select the Use DDE checkbox.
- Type Open("%1") in the DDE Message edit box.
- Type msdev in the Application edit box.
- Type System in the Topic edit box.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Visual C++ .NET.
REFERENCES
For more information on Visual Basic Script macros, see the following topic in the MSDN Online Libraries:
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbAutomation kbBug kbDSupport kbNoUpdate KB238341 |
---|
|