Sure. I'm using the latest mono I built from the SVN source on 08/07/2007. The call stack with file/line info is really wide, so I've attached it as a text file to this message.
Thanks! -----Original Message----- From: Rolf Bjarne Kvinge [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 2:15 AM To: Maser, Dan; [email protected] Subject: RE: [Mono-winforms-list] Handle being created when I don't expect >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maser, Dan >Sent: miércoles, 08 de agosto de 2007 23:49 >To: Maser, Dan; [email protected] >Subject: Re: [Mono-winforms-list] Handle being created when I don't >expect > > Sorry, that got sent too early. Here's more of the call stack this time. Could you execute with "mono --debug app.exe" so that you get line numbers as well? And knowing which version of Winforms you're using would also help :) Rolf >_____________________________________________ >From: Maser, Dan >Sent: Wednesday, August 08, 2007 4:39 PM >To: '[email protected]' >Subject: Handle being created when I don't expect > I've got a situation with MDI forms where the behavior is different >on MS vs mono, but it's proving difficult to get a simple test project that >reproduces it. The problem is that in my app setting the >Form.MdiParent is causing that Form's handle to be created in mono when it doesn't on >MS.NET. And it doesn't happen for simple test programs on mono >either; with simple test programs setting the MdiParent property doesn't cause the >handle to be created. I think it must be something about my real >project that causes this, but the program is so large it's difficult to tell what that >might be. Here's a partial call stack from the Form.HandleCreated event. Does this info give enough info to someone to make some guesses about what >could cause the MdiParent property to trigger the HandleCreated in some projects but not in others? > Thanks in advance for any ideas! > Partial call stack: >at MyChildForm.on_HandleCreated(System.Object sender, System.EventArgs >e) at System.Windows.Forms.Control.OnHandleCreated(System.EventArgs e) >at System.Windows.Forms.Form.OnHandleCreated(System.EventArgs e) at >System.Windows.Forms.Control.WmCreate(Message ByRef m) at >System.Windows.Forms.Control.WndProc(Message ByRef m) at >System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m) at >System.Windows.Forms.ContainerControl.WndProc(Message ByRef m) at >System.Windows.Forms.Form.WndProc(Message ByRef m) at >System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message >ByRef m) >at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message >ByRef m) >at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, >IntPtr wParam, IntPtr lParam) >at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hWnd, Msg msg, >IntPtr wParam, IntPtr lParam) >at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreatePara ms cp) >at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp) >at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreatePa rams create_params) >at System.Windows.Forms.Control.CreateHandle() >at System.Windows.Forms.Form.CreateHandle() >at System.Windows.Forms.Control.WmDestroy(Message ByRef m) at >System.Windows.Forms.Control.WndProc(Message ByRef m) at >System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m) at >System.Windows.Forms.ContainerControl.WndProc(Message ByRef m) at >System.Windows.Forms.Form.WmDestroy(Message ByRef m) at >System.Windows.Forms.Form.WndProc(Message ByRef m) at >System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message >ByRef m) >at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message >ByRef m) >at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, >IntPtr wParam, IntPtr lParam) >at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hWnd, Msg msg, >IntPtr wParam, IntPtr lParam) >at System.Windows.Forms.XplatUIX11.DestroyWindow(IntPtr handle) at >System.Windows.Forms.XplatUI.DestroyWindow(IntPtr handle) at >System.Windows.Forms.NativeWindow.DestroyWindow() >at System.Windows.Forms.Control.DestroyHandle() >at System.Windows.Forms.Control.RecreateHandle() >at System.Windows.Forms.Form.set_MdiParent(System.Windows.Forms.Form >value) >.... >There's more, but this seems like the relevant part. > >
at MyChildForm.on_HandleCreated(System.Object sender, System.EventArgs e) in /home/danm/builds/test1/child_window.cs:line 123 at System.Windows.Forms.Control.OnHandleCreated(System.EventArgs e) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 5767 at System.Windows.Forms.Form.OnHandleCreated(System.EventArgs e) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Forms.cs:line 1979 at System.Windows.Forms.Control.WmCreate(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 5344 at System.Windows.Forms.Control.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 5028 at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:line 717 at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:line 530 at System.Windows.Forms.Form.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:line 2424 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 224 at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 205 at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:line 200 at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:line 4839 at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:line 2701 at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:line 439 at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams create_params) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:line 112 at System.Windows.Forms.Control.CreateHandle() in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 4187 at System.Windows.Forms.Form.CreateHandle() in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:line 1851 at System.Windows.Forms.Control.WmDestroy(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 5123 at System.Windows.Forms.Control.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 4936 at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:line 717 at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:line 530 at System.Windows.Forms.Form.WmDestroy(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Forms.cs:line 2438 at System.Windows.Forms.Form.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Forms.cs:line 2327 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 224 at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 205 at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:line 188 at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:line 4839 at System.Windows.Forms.XplatUIX11.DestroyWindow(IntPtr handle) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIUI.cs:line 3227 at System.Windows.Forms.XplatUI.DestroyWindow(IntPtr handle) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:line 536 at System.Windows.Forms.NativeWindow.DestroyWindow() in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:line 133 at System.Windows.Forms.Control.DestroyHandle() in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 4226 at System.Windows.Forms.Control.RecreateHandle() in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:line 4462 at System.Windows.Forms.Form.set_MdiParent(System.Windows.Forms.Form value) in /home/danm/mono_src/anon_svn/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Forms.cs:line 865 ...
_______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
