• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

vs 2010 crashing


I changed one of the files by mistake and then DIDN't SAVE IT . I just closed the entire VS ide. Somehow, now when i double click on the file to open in the visual studio editor , it crashed the IDE by saying "Microsoft has encountered a problem and needs to close".

How can i fix this?
1 Solution
R. Andrew KoffronCommented:
have you rebooted the machine and tried again?

try and open the IDE by clicking a different project file from the explorer. to see if it's just the project.  if it open, you can try making a new project and bringing in your files one at a time till you find the problem.

if that doesn't work. do a repair install on VS
what kind of file is it?

if it is a text file (.cpp, .c, .h, .rc) you might do the following:

- copy the contents into the clipboard
- remove (not delete the file) from project (tree).
- rename the file (for example by using the explorer.
- close the visual studio (save project).
- open the solution again in visual studio
- right-click on the project folder (in solution tree) where the file was removed from
- create a new file of same name as the old one and paste the contents from clipboard.
- close all documents
- do a full rebuild

if the problem was called by a wrong dependency or by a wrong entry in 'intellisense', the above procedure should help from that.

good luck.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now