Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Program crashes with 0xC000000D and no exceptions - how do I debug it?

I have a Visual C++ 9 Win32 application that uses a third-party library. When a function from that library is called with a certain set of parameters the program crashes with "exception code 0xC000000D".

I tried to attach Visual Studio debugger - no exceptions are thrown (neither C++ nor structured like access violations) and terminate() is not called either. Still the program just ends silently.

How does it happen that the program just ends abnormally but without stopping in the debugger? How can I localize the problem?

like image 336
sharptooth Avatar asked Nov 22 '10 07:11

sharptooth


1 Answers

That's STATUS_INVALID_PARAMETER, use WinDbg to track down who threw it (i.e. attach WinDbg, sxe eh then g.

like image 89
Ana Betts Avatar answered Oct 06 '22 00:10

Ana Betts