Re: [info-performer] pfDataPool Help

Date view Thread view Subject view Author view

From: Devrim Erdem (devrim++at++vires.com)
Date: 06/26/2003 06:26:12


Alexander Lechner wrote:

>Hi all!
>
>We're using Performer 3.01 (Demo Edition) on a SuSe Linux 8.2, Dual
>Processor Xeon System.
>I have a question concerning pfDataPools: I create a data pool by the APP
>process, and want the DRAW process to access the data. In the DRAW I call
>pfDataPool::attach and then pfDataPool:find but it crashes in 'find'.
>My question is: Have data pools to be created in the APP before ::pfConfig?
>
>Thanks in advance,
>
>Alex
>
>
Yes, you need to create shared memory blocks or pfDataPools before
pfConfig(). As app,draw,cull processes are forked with the pfConfig()
call, these processes need valid pointers to shared memory locations at
this stage. After pf*Init and before pfConfig shall be the right time.

You can also check the pointer that pfDataPool::attach() returns, AFAIK
::attach() returns NULL when it fails.

Regards,

-- 
Devrim Erdem
-------------------------------------
VIRES Simulationstechnologie GmbH
Oberaustrasse 34
83026 Rosenheim
Germany
phone    +49.8031.463641
fax      +49.8031.463645
email    devrim++at++vires.com
internet www.vires.com
-------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jun 26 2003 - 06:41:25 PDT