[Qt-interest] Immortal Programs!
Gary Coulbourne
gcoulbourne at mediaguide.com
Thu Jul 2 17:04:35 CEST 2009
Oliver.Knoll at comit.ch wrote:
> Gary Coulbourne wrote on Thursday, July 02, 2009 12:10 AM:
>
>> ...
>> I cannot find anything in the documentation to explain this
>> behaviour,
>
> That's all about multithreaded programming, how to properly terminate threads when your app needs to terminate.
I assumed that it was because there were still threads running -- however, Qt
doesn't appear to provide a way to enumerate the threads that QNetworkManager
created.
I'm not directly creating the threads, they're daemons that, as far as I can
tell, appear to be spawned by either the networking code or the xml parsing
code inside of Qt. I can set a boolean and have the slots in my code that get
called throw an exception in that condition or a false to indicate an error
(since I'm using the streaming xml processor...)
Thanks for the comments.
Peace,
Gary
More information about the Qt-interest-old
mailing list