pfDataPool::alloc of pf types

New Message Reply Date view Thread view Subject view Author view

ross::barna (rbarna++at++umich.edu)
Thu, 15 Jul 1999 09:51:02 -0700 (PDT)


I am having problems allocating and using memory (with performer
structures) in the pfDataPool. I can use simple types (int, float...) but
i get seg faults and bus errors when attempting to allocate space and new
a pfScene.

here is what i tried:

//.....

scene = (pfScene*)pool->alloc(sizeof(pfScene), SCENE_ID); //works
*scene = *(new Scene()) // this is wrong... i dont' know what to do?!?

//.....

can someone throw me a bone here?

thanks!

-ross

_____________________________
ross::barna
joga.ummu.umich.edu


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Jul 15 1999 - 09:50:50 PDT

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