FIX: You may receive a "Microsoft Development Environment has encountered a problem and needs to close" error message when you try to exit Visual Studio .NET 2002
This article has been archived. It is offered "as is" and will no longer be updated.
When you try to exit Microsoft Visual Studio .NET 2002 after you locate the definition of a data type in the Object Browser, you may receive the following error message:
Microsoft Development Environment has encountered a problem and needs to close. We are sorry for the inconvenience.
To resolve this problem, obtain the latest service pack for Microsoft Visual Studio .NET. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
List of bugs that are fixed in Visual Studio .NET 2002 Service Pack 1
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Visual Studio .NET 2002 Service Pack 1.
Steps to reproduce the problem
- Start Visual Studio .NET 2002.
- On the File menu, point to New, and then click Project.
The New Project dialog box appears.
- Under Project Types, click Visual Basic Projects.
- Under Templates, click Console Application.
- In the Name box, type MyApp, and then click OK.
By default, the Module1.vb file is created.
- In the Module1.vb file, locate the following code:
- Add the following code after the code that you located in the previous step:
- Move the pointer to the following text, and then click anywhere in the text to set the insertion point:
For example, move the pointer to the previous text, and then click between "h" and "o" to set the insertion point.
- Right-click the insertion point, and then click Go To Definition.
The Object Browser tool starts.
- On the File menu, click Exit.
The Microsoft Development Environment dialog box appears.
- Click Yes to save the changes. Or, click No to discard the changes.
You may receive the error message that is mentioned in the "Symptoms" section.
For additional information, visit the following Microsoft Developer Network (MSDN) Web sites:
Searching for symbols: objects, definitions and references
Article ID: 841698 - Last Review: 10/26/2013 13:05:00 - Revision: 3.0
Microsoft Visual Basic .NET 2002 Standard Edition
- kbnosurvey kbarchive kbvs2005swept kbvs2005doesnotapply kbvs2002sp1fix kbvs2002sp1sweep kberrmsg KB841698