User forums > Using Code::Blocks
wxSmith error in initial parsing ofWxs file on new prject
frithjofh:
Hi,
i just installed code::blocks svn 4124 , the mingw 5.13 environment, wxWidgets 2.8.4 compiled with "mingw32-make -f makefile.gcc USE_XRC=1 MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=debug"
now i set up a new project with the wizard as explained in the tutorial "http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Hello_world"
everythings fine but at the end of creating the new project there shows a small message-box saying:
"Coudn't parse newly created Wxs file
wxSmith support is disabled"
the contents of the created Wxs file is:
--- Code: ---<?xml version="1.0" encoding="utf-8" ?>
<wxsmith>
<object class="wxFrame" name="testFrame">
<object class="wxMenuBar" variable="MenuBar1" member="no">
<object class="wxMenu" variable="Menu1" member="no">
<label>&File</label>
<object class="wxMenuItem" name="idMenuQuit" variable="MenuItem1" member="no">
<label>Quit</label>
<accel>Alt-F4</accel>
<help>Quit the application</help>
<handler function="OnQuit" entry="EVT_MENU" />
</object>
</object>
<object class="wxMenu" variable="Menu2" member="no">
<label>Help</label>
<object class="wxMenuItem" name="idMenuAbout" variable="MenuItem2" member="no">
<label>About</label>
<accel>F1</accel>
<help>Show info about this application</help>
<handler function="OnAbout" entry="EVT_MENU" />
</object>
</object>
</object>
<object class="wxStatusBar" name="ID_STATUSBAR1" variable="StatusBar1" member="yes">
<fields>1</fields>
<widths>-1</widths>
<styles>wxSB_NORMAL</styles>
</object>
</object>
</wxsmith>
--- End code ---
where am i making the error...? :(
frithjofh:
well i dont know...
i solved the problem myself putting the folder of codeblocks directly under C: , before i had it in some sub-sub-directory with some strange names inbetween (with whitespaces and spanisch letters like ñ and so)
now it works
excuse me not trying first, but perhaps this could be a bug...? ah, and in the message of the box theres a spelling error: in the word coudn't there's missing the "l"
byo:
usually creating project in path with contains local characters is not a good idea. C::B has some problems with it, but since it can be simply avoided (by using path without these characters), it's not considered as "critical".
BYO
Biplab:
Generally putting a local character in project path or project filename crashes C::B. In that sense you are quite lucky that C::B didn't crash.
I've been facing such crash. I can't use my native language to name a file. Especially if it's a C::B project file. TinyXML parser crashes C::B while opening it.
C::B behaves fine with a text file though; which is not handled by TinyXML.
byo:
Hmm, there's TinyXML::LoadDocument put into <tinyxml/tinywxuni.h> which should take care of such bugs. And I guess that it should be preffered method of loading xml stuff. It's little bit hard to find since it's not documented and not put into globals.h (simillar saving function has wrapped in this file).
I'll need to update wxSmith's code.
BYO
Navigation
[0] Message Index
[#] Next page
Go to full version