Re: Performer and C++

New Message Reply Date view Thread view Subject view Author view

Steve Baker (steve++at++mred.bgm.link.com)
Wed, 16 Apr 97 13:39:21 -0500


Robert C Subr wrote:
> I am new at C++ and have a question concerning the PF shared arena. How do I
> setup my user classes so they are defined in the pfsharedarena when the
> operator new is used or deleted from the pfsharedarena when the operator delete
> is called? Or is there another correct way of doing this? Any help or simple
> examples would be greatly appreciated.

Jan Barglowski <jan++at++euryale.chinalake.navy.mil> replied:

> Here's what I've done:
> myClass *myClassPtr;
> myClassPtr = (myClass *) pfMalloc(sizeof(myClass), pfGetSharedArena());

Aaaaarrrggghhhh!

Please don't do that - it bypasses the class constructor function - and
for most classes, that will be a disaster!

Steve Baker 817-619-1361 (Vox-Lab)
Hughes Training Inc. 817-619-8776 (Vox-Office/Vox-Mail)
2200 Arlington Downs Road 817-619-4028 (Fax)
Arlington, Texas. TX 76005-6171 Steve++at++MrEd.bgm.link.com (eMail)
http://www.hti.com (external) http://MrEd.bgm.link.com/staff/steve (intranet)
                                http://web2.airmail.net/sjbaker1 (external)

"You can't destroy the Earth - that's where I keep all my stuff!" - The Tick.

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:55:04 PDT

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