这种情况一次又一次地发生。我只是坐在这里没有运行任何代码,它发生了。我查看事件查看器,看起来它试图从我的一个类中运行代码。
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentNullException
Stack:
at System.Data.Linq.DataContext..ctor(System.String, System.Data.Linq.Mapping.MappingSource)
at TurnbackTools.DataClasses1DataContext..ctor(System.String)
at TurnbackChart.TurnbackChart.ZDraw()
at TurnbackChart.TurnbackChart.TimerTick(System.Object, System.EventArgs)
at System.Windows.Forms.Timer.OnTick(System.EventArgs)
at System.Windows.Forms.Timer+TimerNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
这里发生了什么?