Resource Provider: Memory Manager issues & breaking the publ

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Resource Provider: Memory Manager issues & breaking the publ

Postby CrazyEddie » Thu Jan 27, 2005 09:48

This is mainly just a note to say that last night I did some work to resolve the Ogre / Xerces memory manager conflict, and removed the public dependency on Xerces-C++. Basically, removing the dependency is the important bit, as once this is done the memory manager conflict is a non-issue.

To this end, I have made some changes locally to remove InputSourceContainer. My fix is loading all data via the loadRawDataContainer method, any part of the system that needs to pass this to xerces deals with this as part of the implementation; it adds about 3 lines of code per use of xerces.

I'm still doing some testing on this, and will not commit until after _mental_ has committed the Ogre 1.0 fixes to the resource provider system.

Any comments in the mean time are welcome :)

CE.

User avatar
_mental_
CEGUI Team (Retired)
Posts: 157
Joined: Wed Jan 12, 2005 12:06
Contact:

Re: Resource Provider: Memory Manager issues & breaking the

Postby _mental_ » Thu Jan 27, 2005 20:52

Any chance you could post a diff of the changes?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Resource Provider: Memory Manager issues & breaking the

Postby CrazyEddie » Fri Jan 28, 2005 09:55

The entire thing, including the removed parts, is quite large, so rather than post in-line I'll link to it:

It's The Diff

It hasn't had extensive testing as I've been tied up with other things, but it does seem to do the job okay.

CE.

User avatar
_mental_
CEGUI Team (Retired)
Posts: 157
Joined: Wed Jan 12, 2005 12:06
Contact:

Re: Resource Provider: Memory Manager issues & breaking the

Postby _mental_ » Fri Jan 28, 2005 15:33

Its not as elegant (IMHO), but does the trick :)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Resource Provider: Memory Manager issues & breaking the

Postby CrazyEddie » Sat Jan 29, 2005 08:26

Yeah, in many ways I'd much prefer to leave things alone, though the conflict that xerces causes with Ogre is a real pain in the rear. 'Nice' alternatives to this are a little thin on the ground.

I'll make a final decision on this today or tomorrow, though at the moment I am leaning towards using this solution; if only so I don't have to keep telling people to shuffle their includes around :lol:


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests