bugDotGNU Portable.NET - Bugs: bug #10702, MDI does not work on Win32


You are not allowed to post comments on this tracker with your current authentication level.

bug #10702: MDI does not work on Win32

Submitter:  Carl-Adam Brengesjo <ptah>
Submitted:  Sat 16 Oct 2004 09:08:10 PM UTC
Category:  None Severity:  1 - Wish
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Mon 18 Oct 2004 02:26:07 PM UTC, comment #1: 

MDI doesn't work on Win32 yet - sadly.

Gopal.V <t3rmin4t0r>
Group administrator
Sat 16 Oct 2004 09:08:10 PM UTC, original submission:  

The following code,

using System;
using System.Windows.Forms;

class MdiBox : Form
IsMdiContainer = true;

static void Main(String[] args)
Application.Run(new MdiBox());

ptah@foo:~$ cscc -g -lSystem -lSystem.Windows.Forms -winforms -o test.exe test.cs
ptah@foo:~$ ilrun test.exe
Uncaught exception: System.NullReferenceException: The value 'null' was found where an instance of a
n object was required
        at System.Windows.Forms.Control.CreateHandle() in ./Control.cs:2046
        at System.Windows.Forms.Control.CreateControlInner() in ./Control.cs:1969
        at System.Windows.Forms.Control.CreateControlInner() in ./Control.cs:1978
        at System.Windows.Forms.Control.CreateControl() in ./Control.cs:1960
        at System.Windows.Forms.Control.OnVisibleChanged(EventArgs) in ./Control.cs:5241
        at System.Windows.Forms.Form.OnVisibleChanged(EventArgs) in ./Form.cs:1369
        at System.Windows.Forms.Control.SetVisibleCore(Boolean) in ./Control.cs:3377
        at System.Windows.Forms.ScrollableControl.SetVisibleCore(Boolean) in ./ScrollableControl.cs:
        at System.Windows.Forms.Form.SetVisibleCore(Boolean) in ./Form.cs:1551
        at System.Windows.Forms.Control.set_Visible(Boolean) in ./Control.cs:1796
        at System.Windows.Forms.Control.Show() in ./Control.cs:3390
        at System.Windows.Forms.Application.RunMessageLoop(ApplicationContext) in ./Application.cs:3
        at System.Windows.Forms.Application.Run(Form) in ./Application.cs:576
        at MdiBox.Main(String[]) in test.cs:13

on windows (using Cygwin); Linux/BSD not affected.

Carl-Adam Brengesjo <ptah>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2007-01-09 None Attached File- Added calldetails.txt, #11704
2004-10-20 t3rmin4t0r SummaryNullreference exception in winforms MDI does not work on Win32

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code