C++ allocation in arena ?

New Message Reply Date view Thread view Subject view Author view

AnitaKishore (kishore++at++electrogig.com)
Mon, 11 Sep 1995 09:44:40 -0700


On Sep 11, 9:10am, Lionel Maiaux wrote:
> Subject: C++ allocation in arena ?
> Hi,
>
> I want to use standard C++ allocation (new, delete) but I want these
> allocations to be in Performer arena.
> I suppose it's very simple with Performer 2.0 but I am not a beta tester and
I
> must do it now (so, with 1.2).
> Any idea ?
>-- End of excerpt from Lionel Maiaux

To allocate space from any place other than the default user heap which the
C++ "new" operator does, you will have to override the default "new" operator
to allocate space from where you want. Refer to any C++ book for this. So, if
you want to allocate space out of the Performer arena, I think you can use
pfMalloc in your "new" operator. Make sure you do this after pfInit.

-anita


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:52 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.