How to find error in 'The program .. has exited with code -2147483645 (0x80000003).'

杀马特。学长 韩版系。学妹 提交于 2019-12-06 02:30:33

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!