日期:2014-05-18  浏览次数:21861 次

System.IO.IOException: 句柄无效
今天程序正运行着,突然弹出一个对话框,显示“无法处理的异常”,但是点击“继续”按钮仍可以正常运行。点击详细信息提示

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.IO.IOException: 句柄无效。

  在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
  在 System.IO.__Error.WinIOError()
  在 System.Threading.EventWaitHandle.Set()
  在 System.Windows.Forms.Control.ThreadMethodEntry.Complete()
  在 System.Windows.Forms.Control.InvokeMarshaledCallbacks()
  在 System.Windows.Forms.Control.WndProc(Message& m)
  在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
  在 System.Windows.Forms.Form.WndProc(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.1891 (QFEN-1.050727-1800)
  基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
GatherWeight
  程序集版本: 1.0.0.0
  Win32 版本: 1.0.0.0
  基本代码: file:///F:/testGatherWeight/GatherWeight/bin/Debug/GatherWeight.exe
----------------------------------------
System.Windows.Forms
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.1891 (QFEN-1.050727-1800)
  基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.1889 (QFEN-1.050727-1800)
  基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
  基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
SystemFramework
  程序集版本: 1.0.0.0
  Win32 版本: 1.0.0.0
  基本代码: file:///F:/testGatherWeight/GatherWeight/bin/Debug/SystemFramework.DLL
----------------------------------------
WeifenLuo.WinFormsUI.Docking
  程序集版本: 1.0.0.0
  Win32 版本: 1.0.0.0
  基本代码: file:///F:/testGatherWeight/GatherWeight/bin/Debug/WeifenLuo.WinFormsUI.Docking.DLL
----------------------------------------
SqlHelperTools
  程序集版本: 1.0.0.0
  Win32 版本: 1.0.0.0
  基本代码: file:///F:/testGatherWeight/GatherWeight/bin/Debug/SqlHelperTools.DLL
----------------------------------------
SaveCarErrLog
  程序集版本: 1.0.0.0
  Win32 版本: 2.0.0.0
  基本代码: file:///F:/testGatherWeight/GatherWeight/bin/Debug/SaveCarErrLog.DLL
----------------------------------------
SaveSocketStr
  程序集版本: 1.0.0.0
  Win32 版本: 2.0.0.0
  基本代码: file:///F:/testGatherWeight/GatherWeight/bin/Debug/SaveSocketStr.DLL
----------------------------------------
SaveMeasureDataLog
  程序集版本: 1.0.0.0
  Win32 版本: 2.0.0.0
  基本代码: file:///F:/testGatherWeight/GatherWeight/bin/Debug/SaveMeasureDataLog.DLL
----------------------------------------
DevExpress.XtraBars.v7.1
  程序集版本: 7.1.1.0
  Win32 版本: 7.1.1.0
  基本代码: file:///F:/testGatherWeight/GatherWeight/bin/Debug/DevE