vshost32.exe已停止工作

时间:2014-08-28 13:54:34

标签: mysql vb.net visual-studio-2010

我在visual studio 2010中调试时随机出现此错误。

enter image description here

应用程序向mysql数据库发出一些查询,然后对其进行处理并生成excel输出。在处理数据时发生错误,但有时它会完美无缺地运行,有时会崩溃,同时使用完全相同的数据样本。

如果我在没有调试的情况下运行应用程序,我有时会得到以下异常,有时我会得到一个"应用程序停止工作"有时它完美无瑕。当我在另一台PC上安装应用程序时也会发生同样的情况。

************** Texto de la excepción **************
System.Threading.ThreadAbortException: Subproceso anulado.
en System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)
en System.Internal.HandleCollector.HandleType.Add(IntPtr handle)
en System.Windows.Forms.UnsafeNativeMethods.CreateDC(String lpszDriver)
en System.Windows.Forms.Screen..ctor(IntPtr monitor, IntPtr hdc)
en System.Windows.Forms.Screen.FromPoint(Point point)
en System.Windows.Forms.Form.FillInCreateParamsStartPosition(CreateParams cp)
en System.Windows.Forms.Form.get_CreateParams()
en System.Windows.Forms.Control.SizeFromClientSize(Int32 width, Int32 height)
en System.Windows.Forms.Control.SizeFromClientSize(Size clientSize)
en System.Windows.Forms.ContainerControl.GetPreferredSizeCore(Size proposedSize)
en System.Windows.Forms.Form.GetPreferredSizeCore(Size proposedSize)
en System.Windows.Forms.Control.GetPreferredSize(Size proposedSize)
en System.Windows.Forms.Control.get_PreferredSize()
en System.Windows.Forms.Form.OnLayout(LayoutEventArgs levent)
en System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
en System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
en System.Windows.Forms.Control.OnResize(EventArgs e)
en System.Windows.Forms.Form.OnResize(EventArgs e)
en System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
en System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
en System.Windows.Forms.Control.UpdateBounds()
en System.Windows.Forms.Control.WmCreate(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
en System.Windows.Forms.Form.WmCreate(Message& m)
en System.Windows.Forms.Form.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

我不明白为什么会出现这个异常,为什么调试器在调试时发生此异常时无法处理或停止(或者为什么在调试时不会引发此异常)或者什么是导致vshost32.exe在调试时停止工作。

我尝试将目标CPU更改为32位或AnyCPU,但没有任何变化。 我不确定我还应该添加什么来解释我的问题,如果你需要更多信息请问我

非常感谢!

0 个答案:

没有答案
相关问题