Dr Colin Bridgewater (crccobr++at++nocrc.abb.no)
Thu, 29 Jan 1998 20:46:11 +0100
Just for fun I decided to try to port one of my old v 1.2 programs to
2.0 and see what the performance is like on my *brand new O2* (with
correct pf_eoe and pf_dev now, thanks Rob J).
Anyway, I make calls to pfGetSharedArena(), and pfuMakeRasterXFont()
followed by pfuSetXFont(). All these are after the various calls to
pfOpenPipeWin() which get the pipe and window set up correctly.
The font is stored in shared memory from where it is is supposed to be
accessed by a DRAW callback. As you may have guessed, this works fine in
single process mode but goes horrible wrong when I force *any* of the
multi-processing modes.
Error message from pfuMakeRasterXFont() is:
>
> PF Warning / Resource:
> pfuMakeXFontBitmaps - couldn't get 129 lists
>
Followed by a complaint from the DRAW callback whenever it tries to
write something with that font:
>
> PF Notice:
> pfuDrawString - bad font handle in pid blah
>
The application runs, but with no text on the screen.... Seems fair
enough if the font hasn't been loaded. But then the GUI is okay.
As an alternative to shared memory, I tried to load the font into a
static structure in the DRAW callback. But that just core-dumped the
first time I tried to use pfuSetXFont(). Didn't keep the error message,
since SEGMENTATION VIOLATION didn't seem to be very helpful.
This is probably a trivial question but I have been looking at it on and
off for a couple of weeks now and it still puzzles me. No rush, I'm more
curious than hassled.
BTW, I never tried running the program in multi-process mode in it's
IrisGL form, so I have no idea if my previous attempts worked properly
either.
Best wishes and vennlig hilsen fra Norges !
Colin
_______________________________________________________________________
Dr Colin Bridgewater crccobr++at++nocrc.abb.no Marine Oil and Gas Dept
ABB Teknologi AS, Bergerveien 12, PO Box 91, N-1361 BILLINGSTAD, Norway
work tel: +47 66 84 35 36, fax: +47 66 84 43 90, home: +44 1189 671713
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:39 PDT