From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 03/24/2000 18:24:34
Make sure that you're allocating whatever stuff you eventually use with
performer using the performer memory allocation routines. There is nothing
special about a constructor or a class init function which would break a
file loading mechanism which works in main().
Run your code in single and multi-process. If it works with a single
process, but breaks in MP, then you're forgetting to allocate something
from the arena.
-- Marcin
On Fri, 24 Mar 2000, Ken Lindsay wrote:
>
> hi,
>
> i tried recently to make a class which loads a geometry
> model in the constructor and despite the apparent identity
> between the pfScene generated by loading in main() vs
> loading in contructor, performer crashed with a pfUpdateable
> error which seemed quite obscure.
>
> today i tried moving the file load from the main to a
> member function init() routine and ran into the same
> problem. is this a known phenomenon? is there some reference
> counting that gets screwed up if you don't generate the
> scene in main or routines called directly from main()? i
> had written an app in c which did all the file loading in
> non-main() functions and never had any problems.
>
> thanks
>
> ken
> -==-
>
> ken "fire a few neurons" lindsay kl++at++mars.arc.nasa.gov
> NASA Ames Research Center Caelum Research Corp
> Bldg 269, Room 281 (650) 604 0461 (lab)
> Mail Stop 269-1 (650) 604 3594 (fax)
> Moffett Field, CA 94035-1000 (650) 604 3181 (vox)
>
> When inlaws are outlawed, only outlaws will have inlaws
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
This archive was generated by hypermail 2b29 : Fri Mar 24 2000 - 18:24:41 PST