|
From: <tim...@en...> - 2005-06-24 20:09:53
|
Thanks to your different points of view, I finally got it working ! Nigel has the most "C++ friendly" solution, but I think I'm not enough=20 experiences with exceptions to override bail_to_command_line() with them. However, as Ethan and Dave proposed, I can do my own setjump in the=20 thread which is sending the command. As I can't come back from a=20 longjump to my gui thread (because it contains c++ objects), I simply=20 have to use another thread. This "worker thread" has no object, so it is=20 "setjmp - safe". It verifies if it is called from the longjump to avoid=20 sending the command again. This way, I only need to add a test to bail_to_command_line() to call=20 the good longjmp(). I hope you'll find this solution convenient ! Timoth=C3=A9e P.S. : Here's a gift : http://tipote.free.fr/wxt2.png A screenshot of the current state of the terminal |