Debugging in mixed mode (.NET/CLR/Native) and asserts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I'm experiencing issues while debugging our application and some assert fails.
(For instance when triggering assertWriteEnabled() on an object only opened for kForRead.)
The issue I'm having is that the assert window never appears on the AutoCAD screen, and at the same time everything just completely hangs. It's not possible to break or exit the debugger process from Visual Studio or AutoCAD, and the call stack is empty. The only way out is to kill acad.exe through the Windows task manager.
This issue does not occur while debugging in pure managed mode, and also if I set my ObjectArx project as startup and debug in pure native mode, it works as expected. It's only when using a .NET project as startup with "Enable native code debugging" activated that this problem occurs.
Visual Studio 2022 (17.7.0), AutoCAD 2023 / 2024.
Does any one else experience the same problem, or have found a solution?
Best regards,
Øystein Wiger
Focus Software AS