kDebug and the Application object
Thiago Macieira
thiago at kde.org
Sun Apr 13 18:58:58 BST 2008
Michael Jansen wrote:
>Remember there are kError and kWarning too. Both have the same problem.
> And i would expect to get a application name when seeing an error
> message. <unknown program name> is definetely not correct there.
We can change it to "unknown main component", which is technically more
correct.
It is definitely not an error to use those routines before the name is
known.
>Back to printf seems to be wrong for me. Is it safe to set the
> mainComponent before creating the application object?
I don't know.
But solve your problem by moving all your code to *after* the
KUniqueApplication initialisation. Do everything after the application
has forked.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080413/df581724/attachment.sig>
More information about the kde-core-devel
mailing list