Hi, I have found something interesting. When I do not call sys.exit(), and just call this: reactor.callFromThread(reactor.stop), the program exits properly. I was wondering if it was safe to not call sys.exit()? If so I think the problem is fixed. Thank you.
> -----Original Message----- > From: rsga...@inbox.com > Sent: Tue, 16 Nov 2010 10:00:50 -0800 > To: twisted-python@twistedmatrix.com > Subject: Re: [Twisted-Python] wxReactor Issues > > Hi, > Thank you for the suggestion. Unfortunately, I still have this problem > when I call the reactor.callFromThread(reactor.stop). I have this problem > with: > OS: Ubuntu 10.04 > WX (python-wxgtk2.8): 2.8.10.1-0ubuntu1.2 > Twisted: 10.0.0-2ubuntu2 > Python: 2.6.5 > Here is some output from gdb: > ----------------------------- > (gdb) run test.py > Starting program: /usr/bin/python test.py > [Thread debugging using libthread_db enabled] > Started to connect. > [New Thread 0x7fffe8dc1710 (LWP 31902)] > [New Thread 0x7fffe85c0710 (LWP 31903)] > -Output from the server here > -At this time, I try to close the program. It just sits there, and after > a few seconds, Ubuntu prompts me to force quit. > [Thread 0x7fffe85c0710 (LWP 31903) exited] > [Thread 0x7fffe8dc1710 (LWP 31902) exited] > > Program terminated with signal SIGKILL, Killed. > The program no longer exists. > ----------------------------- > > Thank you. > >> -----Original Message----- >> From: ita...@itamarst.org >> Sent: Mon, 15 Nov 2010 23:12:09 -0500 >> To: twisted-python@twistedmatrix.com >> Subject: Re: [Twisted-Python] wxReactor Issues >> >> On Mon, 2010-11-15 at 19:28 -0800, RSGames Support wrote: >>> Hi, >>> I have created a simple demo (one .py file) to show the problem without >>> the entire application. You can download it here: http://bit.ly/a2TTlT >> >> And, if you switch reactor.stop() with >> reactor.callFromThread(reactor.stop) you still have the problem? What > > ____________________________________________________________ > FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! > Check it out at http://www.inbox.com/earth > > _______________________________________________ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python ____________________________________________________________ Publish your photos in seconds for FREE TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if4 _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python