Re: allocating memory before creating objects
From: Rob Kennedy (me3_at_privacy.net)
Date: 08/25/04
- Next message: Rob Kennedy: "Re: Pointers, DLL Header files and lots of exceptions?"
- Previous message: Matthias: "allocating memory before creating objects"
- In reply to: Matthias: "allocating memory before creating objects"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Rob Kennedy: "Re: Pointers, DLL Header files and lots of exceptions?"
- Previous message: Matthias: "allocating memory before creating objects"
- In reply to: Matthias: "allocating memory before creating objects"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]