new(arena)

New Message Reply Date view Thread view Subject view Author view

chris (chris++at++scotch.physics.ucla.edu)
Fri, 26 Sep 1997 18:25:57 -0700


Hi pfGurus.

I bet this is an easy one.

I would like to allocate a pfSwitch from an arena.

pfSwitch* mySwitch = (pfSwitch*)pfMalloc(sizeof(pfSwitch),arena)

is nice but doesn't invoke the constructor.

I have tried

pfSwitch* mySwitch = new(arena);
                        = new(sizeof(pfSwitch),arena);
                        = new(0, sizeof(pfSwitch), arena);
                        = new(0, sizeof(pfSwitch));

Compiler flags them all.

What to do? Am using IRIX 6.2 and performer 2.1 on
SGI Max Impact.

Any advice would be appreciated.

Chris Mitchell
UCLA Physics Department
LAPD Plasma Lab
310-206-1772
chrism++at++ucla.edu
http://scotch.physics.ucla.edu/~chris
=======================================================================
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:56:00 PDT

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