[Qt-interest] 6 second delay after destruction of QMainWindow subclass
Burkhard Daniel
daniel at mtronix.de
Wed May 13 12:27:33 CEST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
If this is on VisualStudio in Debug Mode, then this may simply be the
debug heap consistency checker at work. This has nothing to do with
Qt. If you have done a lot of allocations, there will be a lot of
checking to do.
Burk.
Stephen Collyer wrote:
> I have code which constructs an auto object which is subclassed from
> QMainWindow. Logging shows me that there is a 6 second delay after the
> object's destructor runs, when the program terminates.
>
> The code in skeleton looks like:
>
> try
> {
> QApplication app(argc, argv);
>
> MainWindowClass m;
>
> <construct other objects>
> ...
> }
> catch(..)
> {
> ..
> }
>
> <some logging>
> exit(0);
>
> The MainWindowClass object is the last object destroyed when control
> leaves the try block.
> Can anyone suggest what's going on here ?
>
> --
> Stephen Collyer
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkoKoJQACgkQf5kPO3evx+0ZFgCfaLcfN7py+fVHiVE9itbMQ3if
nE8AniCCu/Q0O1Nt7ksTPmdNX8ybdm1e
=EPHE
-----END PGP SIGNATURE-----
More information about the Qt-interest-old
mailing list