InvalidOperationException: 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。 StackTrace: 在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) 在 System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args) 在 System.Windows.Forms.WindowsFormsSynchronizationContext.Post(SendOrPostCallback d, Object state) 在 __ScriptExecution.__q7kch5kd.MouseHook.Proc(Int32 n, IntPtr w, IntPtr l)
InvalidOperationException: 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。 StackTrace: 在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) 在 System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args) 在 __ScriptExecution.__f9nsf6zh.WindowTabsContext.HookProc(IntPtr hWinEventHook, UInt32 eventType, IntPtr hwnd, Int32 idObject, Int32 idChild, UInt32 dwEventThread, UInt32 dwmsEventTime)
InvalidOperationException: 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。 StackTrace: 在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) 在 System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args) 在 System.Windows.Forms.WindowsFormsSynchronizationContext.Post(SendOrPostCallback d, Object state) 在 System.Threading.Tasks.AwaitTaskContinuation.RunCallback(ContextCallback callback, Object state, Task& currentTask) --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() 在 System.Threading.ThreadPoolWorkQueue.Dispatch()
InvalidOperationException: 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。 StackTrace: 在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) 在 System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args) 在 System.Windows.Forms.WindowsFormsSynchronizationContext.Post(SendOrPostCallback d, Object state) 在 __ScriptExecution.__32ad46sd.MouseHook.Proc(Int32 n, IntPtr w, IntPtr l)
InvalidOperationException: 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。 StackTrace: 在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) 在 System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args) 在 System.Windows.Forms.WindowsFormsSynchronizationContext.Post(SendOrPostCallback d, Object state) 在 __ScriptExecution.__6gubwcx6.MouseHook.Proc(Int32 n, IntPtr w, IntPtr l)
InvalidOperationException: 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。 StackTrace: 在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) 在 System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args) 在 System.Windows.Forms.WindowsFormsSynchronizationContext.Post(SendOrPostCallback d, Object state) 在 __ScriptExecution.__b1rcm7xa.MouseHook.Proc(Int32 n, IntPtr w, IntPtr l)
InvalidOperationException: 在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke。 StackTrace: 在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) 在 System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) 在 DynamicClass.CrosshairForm.<StartMonitorThread>b__0() 在 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.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Threading.ThreadHelper.ThreadStart()