[Mono-winforms-list] OpenFileDialog throwing ArgumentNullException

Bill Medland billmedland@mercuryspeed.com
Wed, 30 Mar 2005 10:10:14 -0800


On March 30, 2005 08:18 am, Alexander Olk wrote:
> 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.
>

Hm.  Now you really have me confused.  I hope that's a typo.  In the 
System.Windows.Forms.resx I have a <data name="paper" ... but I don't have 
<data name="paper.png"

Anyway, thanks for all the help.  Now I am about to start a completely 
different thread on versioning and build because as far as I can see it 
started working even after nothing changed.!!!

> 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
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list

-- 
Bill Medland
mailto:billmedland@mercuryspeed.com
http://webhome.idirect.com/~kbmed