[Mono-winforms-list] Possible bug with ResxResourceReader class
Gideon de Swardt
gdeswardt1978 at yahoo.co.uk
Tue Oct 3 05:55:20 EDT 2006
Hi All
I think I found a bug in the ResxResourceReader. If a resx file contains a resource of the type System.Drawing.Bitmap, the reader fails to to read the specific item. I have attached a test file as well as test program that first use a patched version of the ResxResourceReader to successfully load the resx file and then secondly tries to load it with the current ResxResourceReader in the Mono runtime.
I have also included a patch file for fixing this bug. Please review
Here is the command line for compiling the test program
$ gmcs -r:System.Windows.Forms -r:System.Drawing -out:Test.exe -target:exe Main.cs ResxReader.cs
Regards
Gideon de Swardt
http://sonskyn-techno.blogspot.com
___________________________________________________________
Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20061003/56ba51a4/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.cs
Type: text/x-csharp
Size: 694 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20061003/56ba51a4/attachment-0003.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ResxReader.cs
Type: text/x-csharp
Size: 10887 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20061003/56ba51a4/attachment-0004.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.resx
Type: application/octet-stream
Size: 9843 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20061003/56ba51a4/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: change.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20061003/56ba51a4/attachment-0005.bin
More information about the Mono-winforms-list
mailing list