From kde-core-devel Sun Feb 17 21:16:20 2008 From: Thiago Macieira Date: Sun, 17 Feb 2008 21:16:20 +0000 To: kde-core-devel Subject: Re: KMaiL: Can't setup D-Bus service. Probably already running. Message-Id: <200802172216.30762.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=120328303825400 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart24074913.ub2vbRdHTR" --nextPart24074913.ub2vbRdHTR Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Ralf Habacker wrote: >Thiago Macieira schrieb: >> Ralf Habacker wrote: >>> I recognized a similar error with amarok starting the second time. I >>> had to restart dbus-daemon to avoid this message. In that case i >>> assume that the service KUniqueApplication registers in dbus wasn't >>> unregistered at application shutdown. At least there is no >>> unregisterService() call in whole kdelibs. May be that thiago can >>> give some lights in this area. Anyway the related code is located in >>> kdelibs/kdeui/kernel/kuniqueapplication.cpp line 146 >> >> The name unregisters automatically when the application exits. > >Is this good progamming style not to unregister resources, which are >registered before and to expect that this unregistering is outside the >app ? >In fact does this mean that creating and deleting a KUniqueApplication >instance lets open a kind of "memory leak" in dbus, which should be >fixed in KUniqueApplication and not in dbus. You could argue that, but I won't implement it. It's registered in KUniqueApplication::init, which is a static method not=20 tied to KUniqueApplicaiton's lifetime. =2D-=20 =A0 Thiago Macieira =A0- =A0thiago (AT) macieira.info - thiago (AT) kde.org =A0 =A0 PGP/GPG: 0x6EF45358; fingerprint: =A0 =A0 E067 918B B660 DBD1 105C =A0966C 33F5 F005 6EF4 5358 --nextPart24074913.ub2vbRdHTR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHuKQlM/XwBW70U1gRAv6SAJ9LFf3uBLuVlieEyFk0Horn6YxKLwCdEfMm Op3T2QkrHo/B3H+2CiqlCZs= =NyNc -----END PGP SIGNATURE----- --nextPart24074913.ub2vbRdHTR--