搜索
热搜: 活动 交友 discuz
查看: 1048|回复: 2
收起左侧

[已发布] 程序崩溃,以下错误信息,不知是什么原因?

[复制链接]
散人  发表于 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




  • TA的每日心情
    奋斗
    2015-12-18 09:46
  • 签到天数: 120 天

    [LV.7]常住居民III

    发表于 2013-12-10 10:04:40 | 显示全部楼层
    这个问题我也遇到了,在提交订单页面,点击[刷新]联系人,能稳定重新该问题。 应该是没有使用 if (xxx.InvokeRequired)  xxx.BeginInvoke/Invoke 这种方式,在Worker线程去操作UI了,@木鱼 有空修改下
  • TA的每日心情
    奋斗
    2019-1-5 01:55
  • 签到天数: 138 天

    [LV.7]常住居民III

    发表于 2013-12-10 11:52:12 | 显示全部楼层
    这问题已知且已修复。请等待更新。
    您需要登录后才可以回帖 登录 | 入住

    本版积分规则

    申请友链| Archiver| 手机版| 鱼·后花园

    GMT+8, 2024-9-29 07:30 , Processed in 0.020795 second(s), 16 queries , Redis On.

    Powered by Discuz! X3.4

    © 2005-2024 鱼·后花园

    快速回复 返回顶部 返回列表