Any idea what can cause “vshost32.exe has stopped working” in Visual Studio 2013?
问题 A C# WPF application I am working on contains many calls to an unmanaged external DLL. All calls to the DLL work as expected when running the application normally (i.e. outside the Visual Studio debugger). However when debugging from within Visual Studio 2013, a call to one specific method in the DLL crashes the application: This is how I import the method: [DllImport("Client.dll", CallingConvention = CallingConvention.Cdecl)] private static extern string ClientGetVersion(); ...and this is