Bernard Leclerc (bleclerc++at++cae.ca)
Thu, 21 Mar 1996 12:47:25 -0500
> I just bumped into a problem with pfExit. I need to be able to
> deallocate all resources used by Performer, and then later start a new
> simulation within the same application. Is this at all possible with
> Performer 1.2?
>
> The man page for pfExit says (under "DESCRIPTION"):
>
> "pfExit closes graphics windows, frees all [bla bla bla], then returns
> control to the application."
>
> ..and then later (under "BUGS"):
>
> "Currently pfExit returns directly to the the operating system,
> terminating the simulation application as well."
>
> Ouch. Are there any known work-arounds? (Besides upgrading.. if this
> is solved in 2.0?)
Sorry Morten, but this bug isn't fixed in 2.0 either.
What we end up doing is to have the application restart itself instead of
calling pfExit(). We tried calls to system(3S), pcreate(3C), fork(2) and
exec(2). All approaches worked fine. It's up to you to decide if it's
appropriate in your case.
Bernard.
--
___/ | ___/ Bernard Leclerc e-mail: bleclerc++at++cae.ca
/ / | / Systems Engineer voice: +1 514 341 2000
/ / | __/ CAE Electronics Ltd. extension 2275
/ / | / 8585 Cote De Liesse fax: +1 514 340 5496
/ ____ | / P.O. Box 1800
_____/ _/ _| _____/ Saint-Laurent, Quebec, Canada, H4L-4X4
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:34 PDT