Can Q_GLOBAL_STATIC replace KStaticDelete ?

David Faure faure at
Tue Jan 9 14:37:07 GMT 2007

On Tuesday 09 January 2007 09:08, Thiago Macieira wrote:
> >The reason is that KLibrary wants to start a QTimer when the factory
> > object is destroyed. (I committed a fix that checks for the presence of
> >QCoreApplication::instance(), so that this warning is gone by now.)
> This sounds like a KLibrary bug instead. The timer would never be run, so 
> a new solution must be found.

No, no bug there. The timer is for dlclosing the library. Which is only useful if the
process is going to survive much longer. If we're past ~QCoreApplication, then the
process is going to terminate very soon and it's fine if the dlclose timer never fires.

David Faure, faure at, sponsored by Trolltech to work on KDE,
Konqueror (, and KOffice (

More information about the kde-core-devel mailing list