Woohoo! /me does the happy dance!
I have successfully built and used CEGUI on Mac OS X!!
As suggested, somewhere during the build, the Ogre memory manager was getting tangled up in the code, and the whole thing was getting botched up on String destruction.
I had to complete scrap the Xcode project and build a new one, carefully, from scratch. But it works great now!
@CrazyEddie:
I will have another patch to you this weekend for this work.
destroyImageSet causes crash :(
Moderators: CEGUI MVP, CEGUI Team
- RuprechtTheMonkeyBoy
- Just popping in
- Posts: 17
- Joined: Wed Jan 12, 2005 12:06
- Location: Here
- Contact:
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
destroyImageSet causes crash :(
Whoo Hoo!
That's great news I'll look out for the patch.
CE.
That's great news I'll look out for the patch.
CE.
destroyImageSet causes crash :(
Ok, I'm back to do some testing. ANd have recently built Ogre and plugins with debug stl (whoa, that was fun too) - so now I can debug
.
As a side note - is it just me that can't build/use debug GL rendersystem because glu.dll uses release stlport?
Anyway, after getting everything setup, and a quick test/debug run, showed the app to be indeed crashing during texture deletion. i'll look more into it and try the solution you posted first since I still havn't gotten to that.
.
As a side note - is it just me that can't build/use debug GL rendersystem because glu.dll uses release stlport?
Anyway, after getting everything setup, and a quick test/debug run, showed the app to be indeed crashing during texture deletion. i'll look more into it and try the solution you posted first since I still havn't gotten to that.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
destroyImageSet causes crash :(
As a side note - is it just me that can't build/use debug GL rendersystem because glu.dll uses release stlport?
I guess that would affect everyone the same
Anyway, after getting everything setup, and a quick test/debug run, showed the app to be indeed crashing during texture deletion. i'll look more into it and try the solution you posted first since I still havn't gotten to that.
Hmmm. Hopefully the fix I checked in will have resolved that for you
CE.
destroyImageSet causes crash :(
Sinbad told me he has/uses the GL system in debug, so it must be something I did (or a vc6 hangup) - anyway, thats not important
I downloaded the most recent snapshot, and am a bit confused.
I see d_isLinked, but where is it used? I think it should of been added to:
But its not there, perhaps it should be:
if (d_ogre_texture = NULL && d_isLinked != true )
I downloaded the most recent snapshot, and am a bit confused.
Code: Select all
void OgreTexture::setOgreTexture(Ogre::Texture& texture)
{
freeOgreTexture();
d_ogre_texture = &texture;
d_width = d_ogre_texture->getWidth();
d_height = d_ogre_texture->getHeight();
d_isLinked = true;
}
I see d_isLinked, but where is it used? I think it should of been added to:
Code: Select all
void OgreTexture::freeOgreTexture(void)
{
if (d_ogre_texture)
But its not there, perhaps it should be:
if (d_ogre_texture = NULL && d_isLinked != true )
destroyImageSet causes crash :(
Ok, that fix made it work better... Instead of crashing on destroyImageSet the crash moved to destroy texture... So I figure destroying the imageset causes the texture to get deleted? Anyway, I removed my call to OgreRenderer-> destroy teture so I don't try and delete something that was already deleted.
And everything seems better now (except I think you should add that titbit of code I posted above), and now that I know CE deletes the texture from an imageset, I just will null it after that call. I will have an updated player demo that has several fixes shortly.
Thanks
And everything seems better now (except I think you should add that titbit of code I posted above), and now that I know CE deletes the texture from an imageset, I just will null it after that call. I will have an updated player demo that has several fixes shortly.
Thanks
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
destroyImageSet causes crash :(
I did have that exact code in as part of the fix, honest!
I think the reason it was missing is because I have two versions of the code I'm working on at the same time; obviously I didn't transfer the changes over completely. I'll get this sorted in a little while
CE.
I think the reason it was missing is because I have two versions of the code I'm working on at the same time; obviously I didn't transfer the changes over completely. I'll get this sorted in a little while
CE.
destroyImageSet causes crash :(
I figured as much
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 2 guests