[Mono-winforms-list] System.Windows.Forms broken on windows in Mono 1.0??

A S adam_misc@yahoo.co.uk
Sun, 18 Jul 2004 16:07:20 +0100 (BST)


--0-1385483102-1090163240=:44872
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Content-Id: 
Content-Disposition: inline

Am I exaggerating with the subject line?  Well perhaps
:-) but the problem seems serious and wide-ranging to
me: please read on.

On 1st July, Jay Bertrand raised a bug and proposed a
solution in a mail titled "Winforms under WinXP Pro ->
bug+solution".  In summary, there is a crash in the
constructor of System.Windows.Forms.Form.

So far, there are no replies to his mail.  I have hit
the same thing.  I would suggest this as a serious
problem because:

- I hit the same problem running on Windows 2000 with
Service Pack 4, so it does not seem specific to a
particular OS version.

- The problem occurs during program start-up, and
appears to make it impossible to run the program.

- It occurs with simple programs.  I have attached
code for one I generated using Microsoft .NET by doing
"New Project", "Windows Application", accepting all
the defaults, and typing nothing at all myself!!

- I see the same problem whether I compile with
Microsoft or mcs.

Please can we get a response from the Mono team on
this issue?  Are we making a daft error?  Is Win2k/XP
a supported and tested platform for Mono 1.0 S.W.F?

I use Microsoft .NET to develop software in my spare
time.  I think it's fantastic what you guys at Mono,
sometime in the future, it could be very useful to me
to run on Linux.  But right now, I'm just
experimenting with Mono, and I've not got the
time/energy/need to compile my own Mono using the
patch suggested by Jay.  But I'm happy to help by
sending in diagnostics etc if needs be.

Regards
Adam



	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
--0-1385483102-1090163240=:44872
Content-Type: text/plain; name="Form1.cs"
Content-Description: Form1.cs
Content-Disposition: inline; filename="Form1.cs"

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace TestGUI
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.Size = new System.Drawing.Size(300,300);
			this.Text = "Form1";
		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}
	}
}

--0-1385483102-1090163240=:44872--