we use CEGUI0.7, the log is:
********************************************************************************
21/10/2009 17:13:50 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
21/10/2009 17:13:50 (Std) ********************************************************************************
21/10/2009 17:13:50 (Std) ---- Version 0.7.9999 (Build: Oct 20 2009 Debug Microsoft Windows MSVC++ 8.0 32 bit) ----
21/10/2009 17:13:50 (Std) ---- Renderer module is: CEGUIGamebryoRenderer ----
21/10/2009 17:13:50 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
21/10/2009 17:13:50 (Std) ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
21/10/2009 17:13:50 (Std) ---- Scripting module is: None ----
21/10/2009 17:13:50 (Std) ********************************************************************************
21/10/2009 17:13:50 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
21/10/2009 17:13:50 (Std) ********************************************************************************
our AP would crash when d_registry in FalagardWRModule deallocated.
Code: Select all
FalagardWRModule::~FalagardWRModule()
{
FactoryRegistry::iterator i = d_registry.begin();
for ( ; i != d_registry.end(); ++i)
delete (*i);
} //after this line, then:
Code: Select all
template<class _Ty,
class _Alloc> inline
void _Destroy_range(_Ty *_First, _Ty *_Last, _Alloc& _Al)
{ // destroy [_First, _Last)
_Destroy_range(_First, _Last, _Al, _Ptr_cat(_First, _Last)); //crash
}
Could anyone help me?