allocation of pfDCS

New Message Reply Date view Thread view Subject view Author view

From: Anthony Bavuso (a.t.bavuso++at++larc.nasa.gov)
Date: 01/10/2000 07:49:54


I have a question regarding the allocation of a pfDCS object.
For the performer man page on pfDCS's it states:
new pfDCS creates and returns a handle to a pfDCS. Like other pfNodes,
pfDCSes are always allocated from shared memory and cannot be created
statically, on the stack or in arrays. pfDCSes should be deleted using
pfDelete rather than the delete operator.

Can someone explain to me why pfNodes must "always be allocated from shared
memory and cannot be created statically"?

I can short of understand why a pfNode that is used in the scene graph needs
to be in shared memory so that the CULL and DRAW processes can get to the
node.

But what I want is a static pfDCS object that my thread alters
asynchronously and then at one time, copy my thread's static pfDCS node into
a local pfDCS node that is allocated from shared memory using new and then
insert the copy into the scene graph.

But I have found that if I try to allocate a pfDCS statically the program
core dumps.

Thanks for your help.

Anthony Bavuso


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jan 10 2000 - 07:48:43 PST

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