jason allen bryan (jbryan++at++cis.ohio-state.edu)
Mon, 8 Mar 1999 15:26:53 -0500 (EST)
i'm trying to do some funky forking with performer and am
running into some problems (not surprisingly).
basically, i'm trying to have a GUI in motif sproc a performer
app, and upon pressing a button, signal the app to quit. if
everything shuts down properly, i should be able to start the app
up again by pressing another button, doing a file|load or whatever.
the problem is, performer does not appear to be shutting down
properly. obviously, working with forked proceses is tricky at
best, but i think i have everything covered: in each class that
calls a pfInitxxx, there is a corresponding pfExitxxx. there is
one pfInit, one pfConfig, and one pfExit, all in the same instance
of the same class. every pfxxx has a print statement next to it
so i can see what is called when. ok, so the funny part is that it
all seems to work fine the first time around: push load, app loads;
push quit, app quits. all the printed messages match my expectations.
i even do a ps, and only the GUI is still running. seems fine, right?
yet when i push load again, i get a
PF Warning/Usage: pfuInitInput() Input already initialized. Returning...
even though no processes are running, AND i deleted all instances of
all classes which use performer! even if i remove use of the pfu
library, the app still doesn't run! go figure. i KNOW pfExit is getting
called in the main/parent app process, but this doesn't seem to be
enough. it seems like something, somewhere, is still running and
screwing me up.
so after all that babbling, it comes down to this:
1) i noticed on the man page for pfExit (pf v2.2), a bug is that
pfExit returns to the OS instead of the app. i don't know if
this is causing any problems since i try to make it the very
last thing called, but who knows. anyway, does anyone know if
there is a patch to fix this bug, or a work around?
2) has anyone else tried to do something similar to what i'm attempting?
i know performer has some built in GUI stuff, but i don't think
it will be able to do what i want, plus i already know motif.
3) is it possible sproc does not work as i want it to, and i should
really be using fork?
4) does anyone have any aspirin, cause this whole mess is giving me
a headache.
any help would be very much appreciated, as always.
thanks oodles to all who respond!
Jason Bryan
Ohio Supercomputer Center
This archive was generated by hypermail 2.0b2 on Mon Mar 08 1999 - 12:27:11 PST