|
散人
发表于 2013-12-10 08:15:07
|阅读模式
程序崩溃,以下错误信息,不知是什么原因?
错误信息
-----------------------------------------------------
System.ArgumentException: Controls created on one thread cannot be parented to a control on a different thread.
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at System.Windows.Forms.WindowsFormsUtils.ReadOnlyControlCollection.AddInternal(Control value)
at System.Windows.Forms.ToolStripControlHost.SyncControlParent()
at System.Windows.Forms.ToolStripControlHost.OnParentChanged(ToolStrip oldParent, ToolStrip newParent)
at System.Windows.Forms.ToolStripItem.set_ParentInternal(ToolStrip value)
at System.Windows.Forms.ToolStrip.SetDisplayedItems()
at System.Windows.Forms.StatusStrip.SetDisplayedItems()
at System.Windows.Forms.ToolStrip.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.StatusStrip.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
at System.Windows.Forms.ToolStrip.DoLayoutIfHandleCreated(ToolStripItemEventArgs e)
at System.Windows.Forms.ToolStrip.OnItemVisibleChanged(ToolStripItemEventArgs e, Boolean performLayout)
at System.Windows.Forms.ToolStripItem.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.ToolStripItem.SetVisibleCore(Boolean visible)
at System.Windows.Forms.ToolStripControlHost.SetVisibleCore(Boolean visible)
at System.Windows.Forms.ToolStripItem.set_Visible(Boolean value)
at ..(Object , ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA\UI\Dialogs\MainForm.cs:line 16777215
at ..( ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA.Api\Workers\TaskManager.cs:line 125
at ...(Object ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA.Api\Workers\TaskManager.cs:line 16777215
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
环境信息
-----------------------------------------------------
操作系统版本:Microsoft Windows NT 6.1.7601 Service Pack 1
程序运行目录:C:\Users\Administrator\Desktop\12306订票助手.NET
模块信息
-----------------------------------------------------
[001]. mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
[002]. 12306订票助手, Version=1.6.2.421, Culture=neutral, PublicKeyToken=063375134da4cdc3 , C:\Users\Administrator\Desktop\12306订票助手.NET\12306订票助手.exe
[003]. System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
[004]. System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
[005]. System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
[006]. System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
[007]. System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
[008]. System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
[009]. {a074b7b4-c799-4b2e-a3fd-97f967f3c488}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=3e56350693f7355e ,
[010]. Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed , C:\Users\Administrator\Desktop\12306订票助手.NET\Newtonsoft.Json.dll
[011]. System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
[012]. System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll
[013]. System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
[014]. System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll
[015]. System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
[016]. BetterListViewExpress, Version=3.8.2.0, Culture=neutral, PublicKeyToken=e6c91a3add447be2 , C:\Users\Administrator\Desktop\12306订票助手.NET\BetterListViewExpress.dll
[017]. SimpleUpdater, Version=2.3.0.0, Culture=neutral, PublicKeyToken=8bf54bd6729f490c , C:\Users\Administrator\Desktop\12306订票助手.NET\SimpleUpdater.dll
[018]. System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll
[019]. ?, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null , 不可用信息 (动态程序集)
[020]. Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll
|
|