OS: Windows 10 / .Net6
Target: MSVC/ Visual Studio 2022 / C++17/C11 / Native is Built in Debug Mode
When I generate CppSharp Bindings from a C++ project built in Debug Mode and use the generating bindings and the native DLL in.Net 6, everything compiles successfully, but when I run the.Net project and try to call some functions, I get an unhandled exception: the heap has been corrupted, and occasionally memory access violations.
When I compile the C++ native code in Release mode, the problem does not appear. Also, I'm using the default optimization and linker settings for the native project.
I'm using the following Setup and Parsing Options:
Hey @tritao ,
Any recommendations on this subject, please?
I will be grateful for your assistance because we have placed this use of CppSharp on hold until we find a solution to this issue.
# Brief Description
OS: Windows 10 / .Net6 Target: MSVC/ Visual Studio 2022 / C++17/C11 / Native is Built in Debug Mode
When I generate CppSharp Bindings from a C++ project built in Debug Mode and use the generating bindings and the native DLL in.Net 6, everything compiles successfully, but when I run the.Net project and try to call some functions, I get an unhandled exception: the heap has been corrupted, and occasionally memory access violations.
I'm using the following Setup and Parsing Options:
How to solve this problem?