[Mono-winforms-list] Current winforms is giving me an error

Paul paul@all-the-johnsons.co.uk
Thu, 30 Sep 2004 19:30:53 +0100


--=-1qB9MAH//QO5Yir3STAy
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

I've done a cvs update, rebuilt mono, rebuilt libgdiplus and tried to
run a winforms program which worked 2 days ago (though it did give a red
background).

Today, I'm getting (this was produced by running a program with 2>out
after the program name - on screen it says something different [see
below])

Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object
in <0x199111> (wrapper managed-to-native)
System.Windows.Forms.XplatUIX11:XDefaultColormap (intptr,int)
in <0x00004> (wrapper managed-to-native)
System.Windows.Forms.XplatUIX11:XDefaultColormap (intptr,int)
in <0x00052> System.Windows.Forms.XplatUIX11:SetWindowBackground
(intptr,System.Drawing.Color)
in <0x00033> System.Windows.Forms.XplatUI:SetWindowBackground
(intptr,System.Drawing.Color)
in <0x001e5> System.Windows.Forms.Control:CreateHandle ()
in <0x00030> System.Windows.Forms.Control:get_Handle ()
in <0x0004b> (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:get_Handle ()
in <0x0003b> System.Windows.Forms.Control:SetVisibleCore (bool)
in <0x00013> System.Windows.Forms.Control:set_Visible (bool)
in <0x00064> (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:set_Visible (bool)
in <0x000f7> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x0000a> System.Windows.Forms.ContainerControl:.ctor ()
in <0x0000c> System.Windows.Forms.Form:.ctor ()
in <0x00017> UsingFonts:.ctor ()
in <0x0004a> (wrapper remoting-invoke-with-check) UsingFonts:.ctor ()
in <0x0001a> UsingFonts:Main ()

On screen I'm getting=20

#region #line XplatUI Constructor called
X Error of failed request: BadColor (invalid Colormap parameter)
  Major opcode of failed request: 92 (X_LookupColor)
  Resource id in failed request: 0x830582f
  Serial number of failed request: 22
  Current serial number in output stream: 22

Also, I'm finding that code such as=20

using System;
using System.Windows.Forms;

namespace WelcomeGUI
{
   class Welcome4
   {
      static void Main( string[] args )
      {
         MessageBox.Show( "Welcome\nto\nC#\nprogramming!" );
      }
   }
}

will compile and then instantly terminate without showing a MessageBox.

Has MessageBox been implemented or is it my system being silly again? If
it's my box, then fine other wise I think these should be in bugzilla.

TTFN

Paul
--=20
"Our enemies are innovative and resourceful - and so are we,"
"They never stop thinking about new ways to harm our country and our
people - and neither do we." - George W. Bush, Aug 2004


--=-1qB9MAH//QO5Yir3STAy
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBBXFDcIX4V53EitUoRAgj8AJ40tB+pcf1V72Htq3AiK96NxOXLQgCfQQvl
43WMncvZhqEHt0VbSSmaI4c=
=8j/b
-----END PGP SIGNATURE-----

--=-1qB9MAH//QO5Yir3STAy--