I having an error when click on button detect usb card reader plug in and show the error message below:
i'm using Visual Studio 2015 community,debug mode, X64 platform.
Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'C:\Users\user\Documents\Visual Studio 2015\Projects\projectTest\projectTest\bin\x64\Debug\projectTest.vshost.exe'. Additional information: The runtime has encountered a fatal error. The address of the error was at 0x8263c796, on thread 0x2488. The error code is 0x80131623. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.
This error only show on while i compiling the project C# winform and plug in the usb card reader, if using release mode it will be fine, but why?
User contributions licensed under CC BY-SA 3.0