[Mono-bugs] [Bug 78153][Min] New - myfriendbot: invoking on a control before window handle created

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Apr 20 22:17:11 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by matt at use.net.


--- shadow/78153	2006-04-20 22:17:10.000000000 -0400
+++ shadow/78153.tmp.31238	2006-04-20 22:17:10.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 78153
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: matt at use.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: myfriendbot: invoking on a control before window handle created
+Steps to reproduce the problem:
+1. run myfriendbot-2.3.exe
+Actual Results:
+app comes up, but has the follow output which didn't appear during previous
+Unhandled Exception: System.InvalidOperationException: Cannot call Invoke
+or InvokeAsync on a control until the window handle is created
+in [0x0006a] (at
+System.Windows.Forms.Control:BeginInvokeInternal (System.Delegate method,
+System.Object[] args, Boolean disposing)
+in [0x00004] (at
+System.Windows.Forms.Control:BeginInvoke (System.Delegate method,
+System.Object[] args)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:BeginInvoke (System.Delegate,object[])
+in [0x0001b] (at
+System.Windows.Forms.PictureBox:OnAnimateImage (System.Object sender,
+System.EventArgs e)
+in (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
+in [0x00014] (at
+System.Drawing.WorkerThread:LoopHandler ()
+Expected Results:
+ImageAnimator shouldn't invoke until the parent form/control is ready.

More information about the mono-bugs mailing list