[Qt-interest] Immortal Programs!

Gary Coulbourne gcoulbourne at mediaguide.com
Mon Jul 6 17:28:07 CEST 2009


Thiago Macieira wrote:
> That's because it creates none.

Indeed, checking with a debugger shows only the threads described... (main and
the one doing dns)

> Usually, they time out after 30 seconds or one minute. But if that's the case, 
> you should fix your DNS server and/or configuration (/etc/resolv.conf on Unix).

The application has already finished getting all of the data over the network.
 I added a bunch of additional debugging, and what appears to happen is that
the data comes in over the network and gets passed to QXmlSimpleReader.  QXSR
takes a long time to process the data, it doesn't seem to matter if it is done
incrementally or as a whole chunk.

What is confusing me is why the application doesn't quit when the last window
is closed, unless QXSR has finished processing the data.  Wouldn't quitting
also kill that processing?

Thanks!

Peace,
Gary



More information about the Qt-interest-old mailing list