vshost.exe错误,关闭我的Win应用程序时,该如何处理? [英] vshost.exe error when closing my win app, How to deal with it ?
问题描述
我有MDI和子表格.我的MDI_FormClosing事件包含以下代码:
I have MDI and Child Forms. My MDI_FormClosing event contains the following code:
clsMain.CN.Close(); //"CN" is my SqlConnection object
clsMain.CN.Dispose();
Environment.Exit(-1);
当我关闭没有打开的子窗体的MDI窗体时,它运行良好.
当我尝试关闭MDI并打开一个子窗体时,将引发以下异常.
http://www.mediafire.com/conv/e039f1817d1719f47d55f3a1270ebad95741c775c40d4c36c500422dab7c09d86g.jpg
When I closed the MDI form with no opened child forms, it was working well.
When I try to close MDI and there is a child form is opened, the following exception is thrown.
http://www.mediafire.com/conv/e039f1817d1719f47d55f3a1270ebad95741c775c40d4c36c500422dab7c09d86g.jpg
Problem signature:
Problem Event Name: APPCRASH
Application Name: General Accounts.vshost.exe
Application Version: 10.0.30319.1
Application Timestamp: 4ba2084b
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7600.16385
Fault Module Timestamp: 4a5bdadb
Exception Code: c0000005
Exception Offset: 00024b7d
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 3073
Additional Information 1: e8ad
Additional Information 2: e8adce1c2b9e7be834b4063ac3c53863
Additional Information 3: e8ad
Additional Information 4: e8adce1c2b9e7be834b4063ac3c53863
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
我尝试转到项目属性"的调试"选项卡,然后从启用Visual Studio托管过程"中删除该检查..它仍然无法正常工作.
如何避免出现此消息或此错误?
I tried to go to Project Properties, Debug tab and remove the check from "Enable the visual studio hosting process" .. it is still not working.
How can I avoid this message or this error ??
推荐答案
请检查以下网址:
http://forums.codeguru.com/showthread.php?406416-RESOLVED-vshost. exe错误 [^ ]
http://social.msdn.microsoft.com/论坛/en-US/vsdebug/thread/b60d81ff-261b-4cfd-a7c5-0acaf0dde1ae [ http://social.msdn.microsoft.com/论坛/en-US/vsdebug/thread/f9135c7c-d876-46a7-a33a-e5e9d174557d [
Hi,
Please check below url :
http://forums.codeguru.com/showthread.php?406416-RESOLVED-vshost.exe-error[^]
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/b60d81ff-261b-4cfd-a7c5-0acaf0dde1ae[^]
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/f9135c7c-d876-46a7-a33a-e5e9d174557d[^]
Thanks.
这篇关于vshost.exe错误,关闭我的Win应用程序时,该如何处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!