Am Dienstag, den 24.05.2005, 21:15 +0400 schrieb Vorobiev Maksim:
Creation of instance of System.Windows.Forms.FileBrowseDialog failed
for me at constructor call with Mono version 1.1.7. I've ran my
program under ru locale. So, constructor failed at the line 532:
imageList.Images.Add( (Image)Locale.GetResource( monitor-planet ) );
debug mode shows, that the problem - null reference passed to Add
method. This is because monitor-planet resource is not defined in
file System.Windows.Forms.resx. Then I copied resource
monitor-planet definition from System.Windows.Forms.de.resx file and
recompiled mono project (especially System.Windows.Forms.dll).
Now everything is working file. My question is: is it correct method
and how to fix this issue for next Mono release? Can I supply the
patch and where should I post it?
If you look at
http://svn.myrealbox.com/viewcvs/branches/mono-1-1-7/mcs/class/Managed.Windows.Forms/resources/System.Windows.Forms.resx?rev=43982view=markup
you will see that the image monitor-planet is available in 1.1.7.
Maybe you had an older version installed...
Alexander Olk
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list