NonInvasive debugging

Non-Invasive debugging is a useful technique to debug hung processes. The debugger suspends all threads in the process and has access to all threads, memory and register’s of the process. To do non-invasive debugging via windbg/cdb check this link out: http://msdn.microsoft.com/en-in/library/windows/hardware/ff552274(v=vs.85).aspx To do this via WinDbg UI, press F6 or File->Attach to a Process… While […]
Continue reading…

 

DEBUG_NEW explained

mm so what the heck is this DEBUG_NEW? Does this harm my application? Why is DEBUG_NEW provided? These are some of the questions that people have always asked when they see the following statements in a .cpp file of an MFC application… [sourcecode language=”cpp”]#ifdef _DEBUG   #define new DEBUG_NEW   #undef THIS_FILE   static char […]
Continue reading…