Why do global native objects cause problems in C++/CLI dlls?
问题 I have read somewhere that it has something to do with non-simple global native objects that have constructors/destructors. Can someone explain what it is exactly that may cause trouble? 回答1: An Example: Once I tried to link a native C++ lib into a C++/CLI application. That lib contained a const static std::string . The application did always crash. Reason: When the application starts, it initializes the const static objects. To make sure that the static objects get deleted properly on