Hi,
I do not altering the image codec later on. I literally only create and destroy the ogre renderer at the moment. I am using visual studio 2008 and statically linking to CEGUI.
The error is an Access violation reading location 0xfeeefeee.
Before System::destroy() is called ic contains, for example:
- CEGUI::ImageCodec {d_identifierString={...} d_supportedFormat={...} } CEGUI::ImageCodec
+ __vfptr 0x0177a260 const CEGUI::OgreImageCodec::`vftable' *
+ d_identifierString {npos=0xffffffff d_cplength=0x0000003d d_reserve=0x0000003e ...} CEGUI::String
+ d_supportedFormat {npos=0xffffffff d_cplength=0x00000000 d_reserve=0x00000020 ...} CEGUI::String
i.e. sensible values, but after System::destroy() is called and before destroyOgreImageCodec(*ic) is called ic contains:
- CEGUI::ImageCodec {d_identifierString={...} d_supportedFormat={...} } CEGUI::ImageCodec
+ __vfptr 0xfeeefeee *
+ d_identifierString {npos=0xffffffff d_cplength=0xfeeefeee d_reserve=0xfeeefeee ...} CEGUI::String
+ d_supportedFormat {npos=0xffffffff d_cplength=0xfeeefeee d_reserve=0xfeeefeee ...} CEGUI::String
which suggests System::destroy() cleans up the image codec before destroyOgreImageCodec(*ic) is called.
The actual crash is in:
Code: Select all
void OgreRenderer::destroyOgreImageCodec(OgreImageCodec& ic)
{
delete ⁣
}
when delete ⁣ is called.
My log file is,
Code: Select all
16/10/2009 13:29:35 (Std) ********************************************************************************
16/10/2009 13:29:35 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
16/10/2009 13:29:35 (Std) ********************************************************************************
16/10/2009 13:29:35 (Std) ---- Version 0.7.0 (Build: Oct 15 2009 Static Debug Microsoft Windows MSVC++ 9.0 32 bit) ----
16/10/2009 13:29:35 (Std) ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
16/10/2009 13:29:35 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
16/10/2009 13:29:35 (Std) ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
16/10/2009 13:29:35 (Std) ---- Scripting module is: None ----
16/10/2009 13:29:35 (Std) ********************************************************************************
16/10/2009 13:29:35 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
16/10/2009 13:29:35 (Std) ********************************************************************************
Once again, thanks for the help and the cool GUI system
Slake.