Steve Woolsey (woolsr++at++inel.gov)
Tue, 20 Jul 1999 16:58:19 -0600
Thanks again,
Steve
Angus Dorbie wrote:
> OK, this can still work. You just need to create your memory on the
> shared arena that's all. Your code should work just don't use a vanilla
> new.
>
> You can do this:
>
> pfMalloc(size, pfGetSharedArena())
>
> or
>
> new(pfGetSharedArena()) type();
>
> Cheers,Angus.
>
> Steve Woolsey wrote:
> >
> > OK, I agree the shared structure should work. However, I have an undefined
> > number of objects that is declared at runtime. That is the reason I had the
> > pfVec3* for location. So I am trying to create an array of pfVec3's that
> > contains the xyz's for the objects from 0-(numObjects-1). How do I create that
> > so that it is aout of shared memory and not out of the heap? That is what I
> > can't figure out. Do I create it with another call to pfCalloc, as done with
> > the shared structure?
> >
> > Thanks for you help.
> >
> > Steve
-- ------------------------------------------------------------------- Steven Woolsey Associate Engineer/Scientist Lockheed Martin Idaho Technologies Visualization Engineer Idaho National Engineering Lab. EMAIL: woolsr++at++inel.gov P.O. Box 1625, M.S. 3605 Idaho Falls, ID 83415-3605 -------------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Tue Jul 20 1999 - 15:58:27 PDT