dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #10702] Nullreference exception in winforms


From: Carl-Adam Brengesjo
Subject: [Pnet-developers] [bugs #10702] Nullreference exception in winforms
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.




/**************************************************************************/
[bugs #10702] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10702>
Project: DotGNU Portable.NET
Submitted by: Carl-Adam Brengesjo
On: Sat 10/16/2004 at 21:08

Category:  None
Severity:  1 - None
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open


Summary:  Nullreference exception in winforms

Original Submission:  The following code,

using System;
using System.Windows.Forms;

class MdiBox : Form
{
        MdiBox()
        {
                IsMdiContainer = true;
        }
        
        static void Main(String[] args)
        {
                Application.Run(new MdiBox());
        }
};

produces
address@hidden:~$ cscc -g -lSystem -lSystem.Windows.Forms -winforms -o test.exe 
test.cs
address@hidden:~$ 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:
282
        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
88
        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.











For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10702>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]