Getting AccessViolation Exception when returning a bool from C++ to C#
问题 I am using a third-party, proprietary DLL for which the source code is not available to me. Wrapper code that appears to have been auto-generated using SWIG 1.3.39 is, however, available to me. The wrapper code consists of a C++ file that compiles (using some headers that describe the DLL) to a DLL and of a C# project that makes PInvoke calls to the C++ wrapper DLL. After inspecting the StackTrace I got the following information: at org.doubango.tinyWRAP.tinyWRAPPINVOKE.MediaSessionMgr