Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: exiting threaded program?
Alex Hall
3/24/2010 11:05:00 AM
A daemon... Good idea, and that makes more sense for what the thread
does anyway; it is just a timer, updating a variable by contacting a
server every hour. By the way, just what is the difference between
user32.PostQuitMessage (0) and sys.exit()?
On 3/24/10, Tim Golden <mail@timgolden.me.uk> wrote:
> On 24/03/2010 10:43, Alex Hall wrote:
>> Hi all,
>> I have a program with a timer in it, therefore I have multiple
>> threads. My method of exiting by using "user32.PostQuitMessage (0)" no
>> longer seems to be doing the job since I added the timer. What else do
>> I have to do to close my program? I say it is not closing because,
>> before, I would be returned to a prompt in the cmd line, but now I
>> cannot type in the cmd line window even after the program supposedly
>> closes, whereas before I could have. Thanks.
>>
>
> Make the timer thread a daemon?
>
> TJG
> --
>
http://mail.python.org/mailman/listinfo/p...
>
--
Have a great day,
Alex (msg sent from GMail website)
mehgcap@gmail.com;
http://www.facebook.c...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: exiting threaded program?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password