Re: Shared Memory Question

New Message Reply Date view Thread view Subject view Author view

Steve Woolsey (woolsr++at++inel.gov)
Tue, 20 Jul 1999 16:58:19 -0600


Thanks for the help. I found that the pfMalloc worked well, but the
new(pfGetSharedArena()) didn't create things properly (it always geve the same
address in memory 0x64000000, and then the program would crash).

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
-------------------------------------------------------------------

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Jul 20 1999 - 15:58:27 PDT

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