UnmanagedFunctionPointer causes stackoverflow when using .NET 4.0, 3.5 works
问题 I have a simple function inside of a click handler that has a try catch block. If I throw an exception within this try catch block it catches the exception successfully. If I put a call to an unmanaged DLL before I throw the exception the exception is unhandled and not caught. What is the unamanged DLL call doing that could be breaking my programs exception handling? If I run the program in debug mode it catches the exception even with "break on exception" unticked for all exceptions. The