[wxruby-users] xrcise question
Alex Fenton
alex at pressure.to
Mon Nov 17 04:48:58 EST 2008
Heinrich Piard wrote:
> Heinrich Piard wrote:
>
>> Mario Steele wrote:
>>
>>> Try changing the line for the loading of the XML resource file from:
>>>
>>> xml.load("wxFormBuilder\noname.xrc")
>>>
>>> To:
>>>
>>> xml.load("wxFormBuilder/noname.xrc")
>>>
>>>
>>>
>>
>> changed it but still get this message.
>>
>> 10:33:15: Error: Cannot load resources from file
>> 'file:/C%3A/ruby/ruby_scripts/wxFormBuilder/nonam.xrc'.
>> c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wx/classes/xmlresource.rb:31:in
>> `load': Failed to load XRC from 'wxFormBuilder/nonam.xrc'; check the
>> file exists and is valid XML (RuntimeError)
>>
>
>
>
> could the above errors be caused by a bug?
>
It's possible, but I can't tell without seeing the XRC file as well as
the generated code. Please could you post your own script, the
XRC-generated ruby file and the XML source file in a zip attachment, or
file it as a bug with attachments on the website bug tracker.
thanks
alex
More information about the wxruby-users
mailing list