问题
In a visual C++ mfc program, which I run on Wondows 7, I always get the error message This Program Has Stopped Working after I close the main dialog/exit the application. But it doesn't happen in Windows XP. Can anyone explain what the matter is and how to solve it?
Thanks a lot.
回答1:
It seems to be a general problem for both vista/7. Try this, it may work:
http://thewinforums.com/topic/17070-resolvedprogram-has-stopped-working/
回答2:
My guess is that the program is trying to write to a file or registry keys that require administrator access; this could occur by the program saving its settings as it shuts down. Starting with Windows Vista, Microsoft has gotten very protective with most areas of the registry and disk, and only certain places are safe to save to.
来源:https://stackoverflow.com/questions/2643242/this-program-has-stopped-working