[Mono-winforms-list] OpenFileDialog throwing ArgumentNullException

Alexander Olk xenomorph2@onlinehome.de
Wed, 30 Mar 2005 18:18:11 +0200


Well, I did a fresh checkout from svn and a new libgdiplus/mono/mcs
build.
Everything is fine here. There seems to be an other problem with your
build. Maybe you didn't update Managed.Windows.Forms/resources. Look at
the resx files there. If you don't find paper.png then you do not have
the newest ones. 

Regards
Alexander Olk

Am Dienstag, den 29.03.2005, 12:04 -0800 schrieb Bill Medland:
> On March 29, 2005 06:40 am, Alexander Olk wrote:
> > Am Montag, den 28.03.2005, 16:36 -0800 schrieb Bill Medland:
> > > Can anyone tell me, is this me doing something wrong or is it a current
> > > bug in the code?
> > >
> > > (Assuming I am doing the build properly) mono is the current version
> > > updated 10 minutes ago.
> > >
> > > Test program simply declares an OpenFileDialog
> > >
> > > Program throws:
> > >
> > > Unhandled Exception: System.ArgumentNullException: Cannot add null image
> > > Parameter name: value
> >
> > Do me a favour and write a simple test program that uses a MessageBox.
> > Does it run ???
> 
> Yep!
> 
> class ofd01 {
>     public static void Main () {
>         System.Windows.Forms.MessageBox.Show ("Test");
>         System.Windows.Forms.OpenFileDialog ofd = new 
> System.Windows.Forms.OpenFileDialog();
>     }
> }
> 
> Pops up the "Test" messagebox and then throws the exception.
> 
> > MessageBox uses images from the same resource files. The resources can
> > be found in mcs/class/Managed.Windows.Forms/resources.
> >
> > Open-/SaveFileDialog work fine on Linux (that's where I'm writing and
> > testing it...). No problems with an empty ImageList...
> 
> My failure is on Linux
> 
> >
> > Regards
> > Alexander Olk
> >
> > _______________________________________________
> > Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>