Access violation in MFC dll (wrapped in C++/CLI) started from C# program
问题 I have written an managed C++/CLI wrapper for mfc dll (C++) and have some access violations after second call of dll! Wrapper // in .h typedef CKeyManagerServerApp* (*KeyManagerInstance)(CCommonUtils *); ManagedKeyInterface::ManagedKeyInterface() { HINSTANCE m_keyManagerLib = LoadLibrary("pathToDll"); KeyManagerInstance _createInstance = (KeyManagerInstance)GetProcAddress(m_keyManagerLib, "GetInstance"); // get native reader interface from managed reader interface CCommonUtils