简体   繁体   中英

Find where “Debug assertion failed” error occured

I have written a C# application that uses a native mfc library as COM component. This program is running on the server machine to monitor some hardware devices. Although most of the time the application is work properly, Sometimes I'm getting "C++ Debug assertion failed" message box.

I want to know how can I debug my application and see the call stack of my source code when the assertion failed error appear. I have my C# app source code, but the problem is the assertion occurred in unmanaged code. When I attached visual studio debugger to the app, nothing appeared when the assertion failed error was raised!

AFAIK you can only debug this if you have the source code of the COM component. Once you've opened that project attach the debugger to the process that will call/load the DLL of the COM component.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM