learnyourabc
2007-10-24 06:09:54 UTC
I included the Crash Report below in all my MFC app for release mode
so that I can debug the error using the crash.bmp files and windbg.
http://www.codeproject.com/debug/XCrashReportPt3.asp
It has been very useful in tracing a problem.
But how do I debug or trace a simple multithreaded program that will
not crash but will hang or not responsive to user at all. There could
be deadlock situations that cause this. How to trace this problem?
Assuming that you are running the release version and it is not run in
any debugger(you can't do break all then go to thread windows to see)
when the deadlock situation occur.
Does anyone out there know how to do this kind of debugging or
tracing. Any suggestions or tutorials on how to tackle such problems?
I know you can add some log statements to see where it hangs but there
must be a better solution. Be able to see the threads that are running
and where in the code that it is looping or waiting similar to the
crash dump file........
so that I can debug the error using the crash.bmp files and windbg.
http://www.codeproject.com/debug/XCrashReportPt3.asp
It has been very useful in tracing a problem.
But how do I debug or trace a simple multithreaded program that will
not crash but will hang or not responsive to user at all. There could
be deadlock situations that cause this. How to trace this problem?
Assuming that you are running the release version and it is not run in
any debugger(you can't do break all then go to thread windows to see)
when the deadlock situation occur.
Does anyone out there know how to do this kind of debugging or
tracing. Any suggestions or tutorials on how to tackle such problems?
I know you can add some log statements to see where it hangs but there
must be a better solution. Be able to see the threads that are running
and where in the code that it is looping or waiting similar to the
crash dump file........