Qt-interest Archive, August 2006
qt, exceptions, threads and so on
Message 1 in thread
Hi.
I have some problem with Qt. I need include some old source code of some
console program to my GUI application. I need run this console program in
simultaneous thread and handle results in my GUI application. Point is that
this program has many exit() calls (this ansi c program). I don't want
replace these exit calls with simple returns because then i need do many
changes but this program is not my work and i don't want damage it (now this
code work on many platforms and belive me author did great work to force it
work on many platforms). At first i tried use terminate but it does not work
on all platforms same way (i could not make it work on mac for example and i
suspect trolltech just does not call some system functions for enabling
imediate termination of thread, but this is another subject). Then i tried
use execeptions. I.e. in place exit i write throw and place call of main
console function call to try block. This work fine... but only in debug
compilation (i work on windows in VS and compile it with debug
configuration). Release compilation just crashes on throw. Following is a
command what i used for preparing compilation qt:
configure -debug-and-release -static -no-accessibility -qt-zlib -qt-gif -qt-libpng
-qt-libjpeg
It seems debug and release versions dont work same way. May be anything know
how to solve this problem ?
Sergey Kondryukov
svk@xxxxxxxxxxxxxx
--
[ signature omitted ]