Code: Select all
//! deallocate memory for an array of objects
void deallocate(T* ptr)
{
internal_delete(ptr);
}
This is happening in VC++ 2005 Express.
The stack for deallocate issue:
Code: Select all
> Game.exe!irr::core::irrAllocator<char>::deallocate(char * ptr=0x00000000) Line 40 + 0xe bytes C++
Game.exe!irr::core::string<char,irr::core::irrAllocator<char> >::operator=(const irr::core::string<char,irr::core::irrAllocator<char> > & other={...}) Line 154 C++
Game.exe!CAnimatedTextures::Load(irr::core::string<char,irr::core::irrAllocator<char> > _Filename={...}) Line 57 + 0x16 bytes C++
Code: Select all
//! deallocate memory for an array of objects
void deallocate(T* ptr)
{
#ifdef _MSC_VER
#if (_MSC_VER >= 1400 )
if(!ptr) return;
#endif
#endif
internal_delete(ptr);
}
Code: Select all
//! allocate memory for an array of objects
T* allocate(size_t cnt)
{
return (T*)internal_new(cnt* sizeof(T));
}
Code: Select all
> Game.exe!irr::core::irrAllocator<char>::allocate(unsigned int cnt=17) Line 34 + 0xe bytes C++
Game.exe!irr::core::string<char,irr::core::irrAllocator<char> >::operator=(const irr::core::string<char,irr::core::irrAllocator<char> > & other={...}) Line 155 + 0x12 bytes C++
Game.exe!CAnimatedTextures::Load(irr::core::string<char,irr::core::irrAllocator<char> > _Filename={...}) Line 57 + 0x16 bytes C++
Code: Select all
- this 0x0012fd3c irr::core::irrAllocator<char> * const
- __vfptr 0x00000000 *
[0] CXX0030: Error: expression cannot be evaluated
[1] CXX0030: Error: expression cannot be evaluated
[2] CXX0030: Error: expression cannot be evaluated
cnt 17 unsigned int
I'm not at all sure as to what is going on.