[Mono-bugs] [Bug 341314] New: System.ArgumentException: Cannot activate invisible or disabled control

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 13 08:56:26 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=341314

           Summary: System.ArgumentException: Cannot activate invisible or
                    disabled control
           Product: Mono: Class Libraries
           Version: 1.2.5
          Platform: i386
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: walker_643 at yahoo.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


This exception was triggered when my app received a TCP/IP packet (sent by me
from client software). The entire stack trace spat out by mono is in MWF except
for the top. Program.cs line 23 is the  Application.Run(new MainForm());  line.
 I don't understand why there is no mention of what it was actually doing when
the exception occurred (the TCP/IP stuff). What other details can I provide? In
any case, why does an attempt to activate an invisible or disabled control
cause an exception? I'll be looking through the network code to find more
details. Thanks :)


Unhandled Exception: System.ArgumentException: Cannot activate invisible or
disabled control.
  at System.Windows.Forms.ContainerControl.set_ActiveControl
(System.Windows.Forms.Control value) [0x00225] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:178 
  at System.Windows.Forms.Control.Select (System.Windows.Forms.Control control)
[0x00023] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:1308 
  at System.Windows.Forms.Form.SelectActiveControl () [0x00055] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:257 
  at System.Windows.Forms.Form.WmActivate (System.Windows.Forms.Message& m)
[0x0001d] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2531 
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m)
[0x00101] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2353 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:224 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:205 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x0006b] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:183 
  at System.Windows.Forms.XplatUIX11.SendMessage (IntPtr hwnd, Msg message,
IntPtr wParam, IntPtr lParam) [0x0008e] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:4839 
  at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id,
System.Windows.Forms.MSG& msg, IntPtr handle, Int32 wFilterMin, Int32
wFilterMax) [0x0113a] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:4019 
  at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id,
System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax)
[0x00000] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:660 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x003d1] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:759 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm)
[0x00000] in
/usr/local/src/mono-1.2.5.1-svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:534 
  at MyCo.MyProject.Program.Main () [0x00026] in
/source/myco/myproject/Program.cs:23


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list