On Wed, May 31, 2006 at 10:45:00AM +0200, Jean-Marc Lasgouttes wrote: > >>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: > > Andre> Are we really explicitly calling exit()? > > Yes, in lyx_gui::exit, which is called in quitLyX. Do you think this > is a problem?
I am not sure this is an a_actual_ problem. However, if we for any reason rely on destuctors being executed (or being executed it a specific order) this might get us into troubles. exit(3) only guarantees a return to the system, no application cleanup. The cleaner solution would be to 'throw SomeFancyException();' and 'int main() { try { ... } catch (SomeFancyException const &) { return ...; }}' Andre'