Have a look at memoverride.cpp, we use that file along with code in
tier0.dll to manage (and track) our own heap allocations (and to have a
single heap for the entire process, rather than one per dll).

- Alfred

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Williams
Sent: Friday, April 29, 2005 7:54 AM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] I need an example of adding tab control for vgui

On 4/29/05, <SB> Childe Roland <[EMAIL PROTECTED]> wrote:
> new is a compiler command.  I'm pretty sure that you have to call
> delete for everything that you create with new.  Someone please
> correct me if I'm wrong about the SDK.

Not exactly... new is actually an operator, which can be overloaded like
any other. Most projects that use their own memory managers overload it.
I'd be quite surprised if HL2 didn't.


--
-James "Corvidae" Williams ([EMAIL PROTECTED])

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to