[Mono-winforms-list] Value is not a convertible object:System.Drawing.Bitmap to System.Drawing.Image

Gert Driesen gert.driesen at telenet.be
Sun Oct 28 11:45:26 EDT 2007


Andrus,

This should be fixed in SVN.

Can you try again against SVN HEAD?

Gert 

-----Original Message-----
From: mono-winforms-list-bounces at lists.ximian.com
[mailto:mono-winforms-list-bounces at lists.ximian.com] On Behalf Of Andrus
Sent: zaterdag 27 oktober 2007 21:12
To: mono-winforms-list at lists.ximian.com
Subject: [Mono-winforms-list] Value is not a convertible
object:System.Drawing.Bitmap to System.Drawing.Image

My Winforms C#  2005 Express .NET 2 application running under MONO 1.2.5
causes exception

Value is not a convertible object: System.Drawing.Bitmap to
System.Drawing.Image

Stack trace:   at System.Convert.ToType (System.Object value, System.Type 
conversionType, IFormatProvider provider) [0x00000]
  at System.Convert.ChangeType (System.Object value, System.Type
conversionType) [0x00000]
  at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName,
System.Globalization.CultureInfo culture) [0x00000]
  at System.ComponentModel.ComponentResourceManager.ApplyResources
(System.Object value, System.String objectName) [0x00000]
  at MyApp.MainForm.InitializeComponent () [0x00000]
  at MyApp.MainForm..ctor () [0x00000]
  at (wrapper remoting-invoke-with-check) MyApp.MainForm:.ctor ()
  at  MyApp.AppMainEntry.MainLoop () [0x00000] ...

How to fix ?

Is this known issue ?

My application is complied in debug mode in VCSE 2005.
How to force MONO to show line numbers in stack trace so I can find which
ApplyResources () call causes exception ?


Andrus. 

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list



More information about the Mono-winforms-list mailing list