AccessViolationException when PInvoking C++ DLL (cdecl calling convention problem?) [closed]
- 阅读更多 关于 AccessViolationException when PInvoking C++ DLL (cdecl calling convention problem?) [closed]
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I've spent all day researching this, and I'm none the wiser: I have a C# DLL which PInvokes a method in a C++ DLL. I have had no problems doing this when compiling in Debug mode, but when compiling in Release mode I get an AccessViolationException. Googling this problem tells me