> Discussion ) http://www.garagegames.com/mg/forums/result.thread.php?qt=48973 wants to comment out the "void* FN_CDECL operator new(dsize_t, void* ptr)" opera"> Void* FN_CDECL operator new(dsize_t, void* ptr) | Torque Game Engine | Forums | Community | GarageGames.com

Game Development Community

Void* FN_CDECL operator new(dsize_t, void* ptr)

by Johan Carlsson · in Torque Game Engine · 08/15/2006 (2:15 pm) · 5 replies

Hi,
My friends in the "RtNEAT AI engine resource" thread (in the Torque SDK Private Forums >> Discussion )
www.garagegames.com/mg/forums/result.thread.php?qt=48973
wants to comment out the "void* FN_CDECL operator new(dsize_t, void* ptr)" operator in winMemory.cc.

I wanted to check here first what that does and why that is casing problems in the first place.
We are integrating the rtNEAR library in to TGE.

From what I've seen on the forum it's related to the use of SDL (rtNEAR uses std:vector), is this correct?

Also what would be the consequence of commenting the new operator out?

Regards,
Johan

#1
08/15/2006 (2:16 pm)
Continue searching the forums, there are a few methods to resolve this problem without hacking out the new
#2
08/15/2006 (2:27 pm)
Ah, of course the search button :-)

Got some hits I read them tonight!

Cheers,
Johan
#3
08/15/2006 (4:36 pm)
Disable memory manager? add it to you comiler definitions
#4
08/16/2006 (1:54 am)
Or use the SDL-fix or use the Torque templates instead of SDL (if feasable).

For more info, search the forum (and I think TMM is documented in TDN too.)
#5
08/17/2006 (1:45 pm)
I think you mean STL, not SDL?
It can be used, if you include STL's headers before any Torque's headers (sometimes this is impossible), or with disabled memory manager (or with hacks, of course)