a bug in python windows service?

momobear wgwigw at gmail.com
Sun May 27 06:56:42 EDT 2007


> No, this is not a bug. You must not call Thread.run(), use Thread.start()
> instead - else your code won't run in a different thread of execution. See  http://docs.python.org/lib/thread-objects.htmlon how to use Thread
> objects - and note that you should *only* override __init__ and run, if
> any.
> Instead of extending join(), write a specific method to signal the
> quitEvent or just let the caller signal it. And I don't see in this
> example why do you need two different events (one on the thread, another
> on the service controller), a single event would suffice.
>
> --
> Gabriel Genellina

Thanks for help, It works now:D





More information about the Python-list mailing list