I'm writing an app that uses IMAPIv2 - that board has been very helpful. I'm hitting a problem now that seems more general in nature:
The app iterates through burning discs. The lower level burning code runs fine hooked up to a commandline test app - no obvious differences can be seen now that it is being called from an mfc front end. Running from the debugger it does fine. Outside of the debugger (but the same binaries) - the following message box comes up after the first disc is successfully burned and then the app terminates.
"A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."
Attaching to a debugger at that point does not reveal much.
1. What does this message mean? That the OS detected a hung app and is killing it? A win32 exception was thrown? (no data shown)
2. Why does it only appear outside of a (remote) debugger? I experimented running the app as Administrator and in XP compatibility mode with no success.
I even ran a utility to view the debug messages while running outside the debugger, but I got no hints there.
Any ideas appreciated!
I also encountered same problem. In our application we are using IMAPI for burning cd.It is working fine on other systems well but on macbook pro, after cd is burnt error message box comes up saying
"A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available"
This works fine with the debug build.
Iam not able to find out the cause.
Is there any specific reason for this failure?
Anyone know how to diagnose this problem? I can't find it in the error logs, I can't produce any error output through stderr
my.exe 2> error.log
I try a try/catch in my Form_Load, but it doesn't seem to ever get there. Is there any other way to figure out what's happening?
I have the same problem too.I tried following thinkgs but without success :
Started the program under Windows 7 with Compatibility for Windows XP, but error message appears again.
Made "Turn off Windows Customer Experience Improvement Program" - Enable - but error message appears again.
I don't know if this applies but, I think I had a similar problem, where every time I opened various programs an error message came up from windows, 'a problem caused the program to stop working correctly, windows will close the program and notify you if a solution is available' and the program would shut down. After a few days of pulling my hair out I remembered this had started after I had downloaded a hardware driver for my graphics tablet, I went into my control panel and deleted the driver, immediately after I deleted it the error messages stopped and the programs are opening and running fine now. It could be something simple like that, think about the last thing you did before the problem occurred?!
Hope this helps.
- Proposed as answer by Ravi Shanker Ulapu Tuesday, February 07, 2012 9:19 AM