Hi,
I'm trying to load XML files inside my application : in order to do this, I downloaded TinyXML sources and added them to my project.
Everything compiles fine, without any error, but when i run the executable, CEGUI::SchemeManager::getSingleton().loadScheme() causes a segfault (before i added tinyxml, it worked).
I finally (after some tests) understood that having tinyxml twice (in the CEGUI lib and in my src dir) wasn't possible. But i still want to use TinyXML classes : how can i do it ?
Thanks,
Ceacy.
Using TinyXML and CEGUI together in an application
Moderators: CEGUI MVP, CEGUI Team
- Exsortis
- CEGUI Team (Retired)
- Posts: 42
- Joined: Mon Feb 07, 2005 17:13
- Location: Palmdale, CA
- Contact:
Re: Using TinyXML and CEGUI together in an application
Ceacy wrote:
Everything compiles fine, without any error, but when i run the executable, CEGUI::SchemeManager::getSingleton().loadScheme() causes a segfault (before i added tinyxml, it worked).
I finally (after some tests) understood that having tinyxml twice (in the CEGUI lib and in my src dir) wasn't possible.
Actually, it is possible to have it both places: I'm doing the same thing myself. Have you run your program through a debugger to see why it's segfaulting at loadScheme()?
-E
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: Using TinyXML and CEGUI together in an application
There was some problems with the bundled tinyxml. A patch has been applied that puts tinyxml inside it's own namespace. This could fix your problems. not sure though.
If you do a CVS update on your cegui_mk2 directory you will get these fixes plus many more.
Or wait for the 0.4.1 release which CE is finishing up right now. So it should be out during the next few days.
If you do a CVS update on your cegui_mk2 directory you will get these fixes plus many more.
Or wait for the 0.4.1 release which CE is finishing up right now. So it should be out during the next few days.
Re: Using TinyXML and CEGUI together in an application
I finally put "my" tinyxml in a namespace, so the problem disappeared
Thanks !
Thanks !
- Exsortis
- CEGUI Team (Retired)
- Posts: 42
- Joined: Mon Feb 07, 2005 17:13
- Location: Palmdale, CA
- Contact:
Re: Using TinyXML and CEGUI together in an application
Ceacy wrote:
I finally put "my" tinyxml in a namespace, so the problem disappeared
Thanks !
Heh, I did the same thing, and didn't even remember.
-E
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 5 guests