Mixed-mode C++/CLI crashing: heap corruption in atexit (static destructor registration)
- by thaimin
I am working on deploying a program and the codebase is a mixture of C++/CLI and C#. The C++/CLI comes in all flavors: native, mixed (/clr), and safe (/clr:safe). In my development environment I create a DLL of all the C++/CLI code and reference that from the C# code (EXE). This method works flawlessly.
For my releases that I want to release a…