Re: Shared memory?

New Message Reply Date view Thread view Subject view Author view

Gan Wang (rock.csd.sgi.com!sgi.sgi.com!uunet.uu.net!ds9!wahoo!gan)
Fri, 30 May 1997 16:52:34 -0400


Amaury Aubel wrote:
>
> Hi,
>
> thanks to all those who helped me solve my pfLOD problem.
>
> I am having again trouble with the shared memory.
> I have an application with mutiple processes, namely an application process
> that spawns a database process. In the database process various structures are
> allocated from the shared arena using pfMalloc(..., pfGetSharedArena()).
> Yet when the app. process attempts to access a particular variable it is
> undefined and the application crashes.

How did you "spawn" the dbase process, fork??? A data structure that is
accessed by both app and dbase has to be malloc before the forking,
i.e., before pfConfig() in a Performer application, even if it's from a
pfSharedArena.

Hope it helps.

Gan

-- 

Gan Wang

Cambridge Research Associates Voice: 703-790-0505 ext.7210 1430 Spring Hill Road, Suite 200 Fax: 703-790-0370 McLean, Virginia 22102 E-mail: gan++at++cambridge.com ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com SGI DevForum 97 info: http://www.sgi.com/Forum97/


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:55:20 PDT

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