I have an uwp project testing on Win 10 iot core with raspberry pi 3. I do remote debugging on device. After a while the application crashes and only i can see in debug is that error.'The program .. has exited with code -2147483645 (0x80000003).' how can i see more meaningful things about this. The debug is stopping after that.
Edit
The output in vs 2015 no more message showing.Only that error. My project is about ble devices. I am making some read and write operations with using ConcurrentDictionary
from different threads. But all of those operations in try catch block. I cannot be sure the problem is about that because noone coming in catch.Also i have following App.cs code
this.UnhandledException += (sender, e) =>
{
e.Handled = true;
System.Diagnostics.Debug.WriteLine(e.Exception);
};
But this code is not hitted too.
I ran into a similar error while wrapping a C++ DLL for a windows Forms application.
The issue was that I returned an unmanaged const char*
from the C++ process and declared it as a string
in the C# environment (that is supposed to work) but the system didn't recognize it, but didn't catch any error.
It seems to be a built-in C# behavior. I had to go through an IntPtr
and Marshal it into a string and the error magically disappeared.
It might have nothing to do with your setting but the symptoms were the same: "Crashing of the application without warning and no exception thrown or caught."
If I were you, and if you're still struggling with this issue, I would look for issues in the DLL wrappings.
According to this Wiki it is a problem with misconfigured system files. The solution is:
1) Start your computer and log on as an administrator.
2) Click the Start button then select All Programs, Accessories, System Tools, and then click System Restore.
3) In the new window, select "Restore my computer to an earlier time" option and then click Next.
4) Select the most recent system restore point from the "On this list, click a restore point" list, and then click Next.
5) Click Next on the confirmation window.
6) Restarts the computer when the restoration is finished.
来源:https://stackoverflow.com/questions/45143425/how-to-find-error-in-the-program-has-exited-with-code-2147483645-0x8000000