The problem in the subject. In my programm it nedds to do some things
after graphic part ends. But when I destroy top level shell programm
stops at MainLoop... So how exit from main loop?
Thanks in advance.
Victor
RTFM
-- ced
--
Chuck Dillon
Senior Software Engineer
Genetics Computer Group, a subsidiary of Oxford Molecular
Use your own main loop, or use XtAppSetExitFlag().
--
David B. Lewis Editor, The Motif Developer: http://www.motifzone.com/tmd/
d...@motifzone.com WebWrangler, The Motif Zone: http://www.motifzone.com/
My man page says only this:
"To indicate that an application context should exit, use XtAppSetExitFlag."
How should I interpret this? If I call XtAppSetExitFlag()
will my application actually exit (i.e. will exit() be called?)
or will it only exit the main loop? I'd prefer the latter
since I need to do some cleanup and output some status
messages when exitting the program.
- Owen -
If you had tested instead of posting you would have discovered that
control goes to the statement following the XtAppMainLoop() call.
--
Dan Mercer
dame...@uswest.net
Opinions expressed herein are my own and may not represent those of my employer.
Remember that the Xt source code is publically available, so you can
easily figure this out. If you want to exit immediately, just call exit().
XtAppSetExitFlag just ends the main loop.
--
Ken Lee, http://www.rahul.net/kenton/
It would be better as:
"To indicate that an application context should exit THE MAIN LOOP, use
XtAppSetExitFlag."
|> How should I interpret this? If I call XtAppSetExitFlag()
Doing so flips a flag that is checked in XtAppMainLoop(), which continues
until that flag is flipped.
|> or will it only exit the main loop? I'd prefer the latter
Yes.
The typical use of this function is in an Xt signal handler.
Thanks.
- Owen -