[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.

http://bugzilla.ximian.com/show_bug.cgi?id=78153

--- 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: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: matt at use.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+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
+testing.
+
+Unhandled Exception: System.InvalidOperationException: Cannot call Invoke
+or InvokeAsync on a control until the window handle is created
+in [0x0006a] (at
+/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:817)
+System.Windows.Forms.Control:BeginInvokeInternal (System.Delegate method,
+System.Object[] args, Boolean disposing)
+in [0x00004] (at
+/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:2526)
+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
+/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PictureBox.cs:313)
+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
+/home/matt/src/mono/mcs/class/System.Drawing/System.Drawing/ImageAnimator.cs:205)
+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