> > The resource file you've attached can't be correctly read by MS.NET 2.0,
> > so I doubt this is a bug.
> > 
> > When I try to read the resource on MS.NET 2.0 with the following
> > code, I get "true". This means that MS.NET was not able to deserialize
> > the value.
>
> That's funny because I created the test file using the ResXResourceWriter
> in the mono framework. I will try to test and submit more code that 
> actually generated this file.

Hi Robert

I was able to recreate the problem when I generate a new resx file using the
ResxResourceWriter class. I have attached the code that generates the resx
file and then also try and read the generated file. I have run this on both
my Win32 and Linux boxes and attached both the resx files. 

It is looking like the problem is then with the writer as the resx files are
different.

Regards

Gideon de Swardt

Attachment: Mono.resx
Description: application/xml

Attachment: Win32.resx
Description: application/xml

Attachment: WebReferenceItem.png
Description: PNG image

// project created on 10/3/2006 at 4:08 PM
using System;

namespace Resx
{
        class MainClass
        {
                public static void Main(string[] args)
                {
                        try
                        {
                                
                                System.Resources.ResXResourceWriter writer = 
new System.Resources.ResXResourceWriter("Test.resx");
                                writer.AddResource("TEST", new 
System.Drawing.Bitmap("WebReferenceItem.png"));
                                writer.Generate();
                                writer.Close();
                                Console.WriteLine("Generated the resx file");
                                
                                System.Resources.ResXResourceReader reader = 
new System.Resources.ResXResourceReader("Test.resx");
                                reader.Close();
                                Console.WriteLine("Read the generated the resx 
file");
                        }
                        catch (Exception e)
                        {
                                Console.WriteLine("\r\nEXCEPTION!!!!\r\n{0}", 
e.Message);
                        }
                }
        }
}
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to