[Mono-dev] Resource Issue
Jonathan Pobst
monkey at jpobst.com
Fri Feb 29 22:34:33 EST 2008
Geoff helped me track down that my animated spinner .gif is getting
corrupted. When I remove it from the project, everything works just
fine. Thanks everyone for the suggestions!
https://bugzilla.novell.com/show_bug.cgi?id=366268
Jonathan
Robert Jordan wrote:
> Robert Jordan wrote:
>> Jonathan Pobst wrote:
>>> I hate to just dump my project here, but I am having trouble making a
>>> standalone test case out of this. It causes an exception when I compile
>>> in MonoDevelop and try to run on opensuse 10.3.
>>>
>>> For my pet project XmppApplication:
>>> svn checkout http://xmppapplication.googlecode.com/svn/trunk/
>>> xmppapplication
>>>
>>> Compile on .net, runs on .net correctly.
>>> Compile on .net, runs on opensuse 10.3 mono 1.9 correctly.
>>> Compile in MD, fails on opensuse 10.3 mono 1.9 runtime with exception below.
>>> Compile in MD, runs on .net correctly.
>>> Compile in MD, runs on winmono 1.9 correctly.
>>>
>>> at XmppApplication.Base.Properties.Resources.get_DefaultAvatar ()
>>> [0x00000] in
>>> /home/jpobst/Desktop/XmppApplication/XmppApplication.Base/Properties/Resources.Designer.cs:79
>> VS.NET is embedding the image this way:
>>
>> <data name="DefaultAvatar" type="System.Resources.ResXFileRef,
>> System.Windows.Forms">
>> <value>..\Resources\default.png;System.Drawing.Bitmap,
>> System.Drawing, Version=2.0.0.0, Culture=neutral,
>> PublicKeyToken=b03f5f7f11d50a3a</value>
>> </data>
>>
>> But I did not find any code in mono's ResX support that flips the
>> backslashes. This explains why the code runs on Windows: this OS
>> does not care about the \ + / mess.
>
> Hmm, my assumption is not quite correct, since MD is converting the
> ResX at compile time. Maybe the generated .resource does not contain
> these images at all.
>
> Robert
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
More information about the Mono-devel-list
mailing list