Re: rapidapp & performer

New Message Reply Date view Thread view Subject view Author view

Glenn Waldron (gwaldron++at++peril.com)
Sat, 08 Mar 1997 12:04:28 -0500


Harri Kaimio wrote:
>
> Glenn Waldron wrote:
> >
...
> > (note: the menus don't seem to be working now, probably has something to
> > do with the VkBackground task. If anyone figures this out let me know)
>
> This is very interesting. I have done work with Performer and ViewKit with
> exactly the same problems with menus. The only solution I have found is not
> to draw the Performer scene until some time has passed from widget creation.
...

I've since fixed the problem too, and my solution was to fork() the
rapidapp process. I took some pointers from SGI's motif.C example, and
forked right after pfConfig(), continuing on with Performer in the
parent process and rapidapp as the child. This all occurs before
the VkApp is created. (And if the fork() fails, we can in theory revert
to the old VkBackground method.) A working example is available upon
request.

This works well, and it also works in Performer MP modes.. the only
drawback
is: now that rapidapp and pf are in separate processes, rapidapp can
only
access a pf data structure if its poniter is in shared memory. I don't
know how safe this is.

(aside: While we're talking about ViewKit widgets, I'd like to point out
that the ImageVision widgets seem to core dump the application somewhat
randomly. The only consistent crash I can find is when you try to
resize
the Image Detail widget..)

> --
> -----------------------------------------------------------------
> Harri Kaimio | harri.kaimio++at++yle.fi
> Computer Graphics Specialist | http://cartes.hut.fi/~hkaimio
> Finnish Broadcasting Company | Tel. +358-40-50 67 679
> TV Production Operations | Fax. +358-0-1480 4769

-- 
Glenn Waldron - ANSER Leading Edge Technologies  phone/PCS: 703.598.7835
email: gwaldron++at++peril.com                       voice mail: 703.416.8462
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

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:54:52 PDT

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