Re: allocating memory before creating objects

From: Rob Kennedy (me3_at_privacy.net)
Date: 08/25/04


Date: Wed, 25 Aug 2004 10:27:49 -0500

Matthias wrote:
> is it possible to allocate memory before I create the individual
> objects?

Yes. Override TObject.NewInstance to return an address within the region
you've already allocated, and then override FreeInstance to finalize the
object and return the memory to your buffer.

-- 
Rob