DocmentViewer使用过程中,出现如下异常,无法复现此异常,但是每天回出现1-2次
winform程序的windowform中新增一个docmumentviewer显示影像,在不定时打开或关闭窗体,在窗体关闭后,或窗体加载后显示不同影像时出现以下异常,如何处理
System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args)
at h.a(Control A_0, s A_1, Object A_2, Object A_3)
at Leadtools.Documents.UI.DocumentViewerThumbnails.a(Object A_0, af A_1)
at i.a.a(af A_0)
at i.a(af A_0, m A_1)
at i.a(af A_0)
at i.a()
at i.a(Object A_0)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
|
|