Skip to content

System.InvalidOperationException: 线程间操作无效: 从不是创建控件“GameForm”的线程访问它 #6

Description

@DawningW
tML: [11:51:47] [8/INFO] [tML]: 初始化:IMPCN v2.0
tML: [11:51:52] [8/WARN] [tML]: 静默捕获异常: 
System.InvalidOperationException: 线程间操作无效: 从不是创建控件“GameForm”的线程访问它。
   在 System.Windows.Forms.Control.get_Handle()
   在 System.Windows.Forms.Control.set_WindowText(String value)
   在 System.Windows.Forms.Form.set_WindowText(String value)
   在 System.Windows.Forms.Control.set_Text(String value)
   在 System.Windows.Forms.Form.set_Text(String value)
   在 Microsoft.Xna.Framework.WindowsGameWindow.SetTitle(String title)
   在 Microsoft.Xna.Framework.GameWindow.set_Title(String value)
   在 IMPCN.IMPCN.LoadAlternateChinese(LanguageManager languageManager, String prefix) 位置 IMPCN.cs:行号 121
   在 IMPCN.IMPCN.Load() 位置 IMPCN.cs:行号 71
   在 Terraria.ModLoader.ModContent.<>c.<Load>b__38_0(Mod mod) 位置 tModLoader\Terraria.ModLoader\ModContent.cs:行号 359
   在 Terraria.ModLoader.ModContent.LoadModContent(CancellationToken token, Action`1 loadAction) 位置 tModLoader\Terraria.ModLoader\ModContent.cs:行号 399
   在 Terraria.ModLoader.ModContent.Load(CancellationToken token) 位置 tModLoader\Terraria.ModLoader\ModContent.cs:行号 362
   在 Terraria.ModLoader.ModLoader.Load(CancellationToken token) 位置 tModLoader\Terraria.ModLoader\ModLoader.cs:行号 140
   在 Terraria.ModLoader.ModLoader.<>c__DisplayClass42_0.<BeginLoad>b__0() 位置 tModLoader\Terraria.ModLoader\ModLoader.cs:行号 117
   在 System.Threading.Tasks.Task.InnerInvoke()
   在 System.Threading.Tasks.Task.Execute()
   在 System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()
   在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

tML: [11:51:52] [8/ERROR] [tML]: 该模组加载时发生错误 IMPCN
该模组检测出是生成于 tModLoader v0.11.3
但是,你正在使用 tModLoader v0.11.7.5
该模组已被自动禁用.
System.InvalidOperationException: 线程间操作无效: 从不是创建控件“GameForm”的线程访问它。
   在 System.Windows.Forms.Control.get_Handle()
   在 System.Windows.Forms.Control.set_WindowText(String value)
   在 System.Windows.Forms.Form.set_WindowText(String value)
   在 System.Windows.Forms.Control.set_Text(String value)
   在 System.Windows.Forms.Form.set_Text(String value)
   在 Microsoft.Xna.Framework.WindowsGameWindow.SetTitle(String title)
   在 Microsoft.Xna.Framework.GameWindow.set_Title(String value)
   在 IMPCN.IMPCN.LoadAlternateChinese(LanguageManager languageManager, String prefix) 位置 IMPCN.cs:行号 87
   在 IMPCN.IMPCN.Load() 位置 IMPCN.cs:行号 68
   在 Terraria.ModLoader.ModContent.<>c.<Load>b__38_0(Mod mod) 位置 tModLoader\Terraria.ModLoader\ModContent.cs:行号 358
   在 Terraria.ModLoader.ModContent.LoadModContent(CancellationToken token, Action`1 loadAction) 位置 tModLoader\Terraria.ModLoader\ModContent.cs:行号 403
   在 Terraria.ModLoader.ModContent.Load(CancellationToken token) 位置 tModLoader\Terraria.ModLoader\ModContent.cs:行号 352
   在 Terraria.ModLoader.ModLoader.Load(CancellationToken token) 位置 tModLoader\Terraria.ModLoader\ModLoader.cs:行号 138
tML: [11:51:52] [8/INFO] [tML]: Disabling Mod: IMPCN

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions