[Interest] QDBusConnection::sessionBus() : caching required?

Thiago Macieira thiago.macieira at intel.com
Tue May 31 22:40:43 CEST 2016


On terça-feira, 31 de maio de 2016 17:26:04 BRT Thiago Macieira wrote:
> On terça-feira, 31 de maio de 2016 21:27:59 BRT René J.V. Bertin wrote:
> > just like the ctor does when setting up DBus. Is that correct practice or
> > should one somehow cache the result of sessionBus() in order to call it
> > only once?
> 
> It's not correct practice.
> 
> The problem is attempting to use QtDBus during global destruction.
> Apparently QtDBus has already destroyed its internals.
> 
> I can add a few protections for that.

https://codereview.qt-project.org/161056

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list