Posts

Showing posts from December, 2011

EMET causes troubles for visual studio’s debugging

Image
Since last month, one of my projects fails to be started by visual studio when trying to debug it, while still can run standalone and also can be attached after having started, and can also be started from windbg. Sometimes showing the message: STATUS_STACK_BUFFER_OVERRUN, sometimes studio hangs, sometimes debugger keeps interrupted at ntdll.dll!_LdrpSnapThunk@36 when trying to load cryptsp.dll. Due to the tight dev schedule, I chose to move on with other projects. Today, I tried to fix it. First, since STATUS_STACK_BUFFER_OVERRUN is VC’s runtime security checking, after disable this compiling option, still not work. Then, check appverif and gflags setting options, clearing them, still not work. Then, tried to debug the _LdrpSnapThunk codes, no infinite loop and seems just unexpected interrupted, anyway, could not figure out why it fails Then, I tried to rename my executable, it works! So, it should not be my debugger problem, must be kind of specific setting like Application Compa...