[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Cannot use KUniqueApplication with dcop
From:       Sebastian =?iso-8859-1?q?K=FCgler?= <sebas () kde ! org>
Date:       2006-08-24 7:26:35
Message-ID: 200608240926.41103.sebas () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 24 August 2006 01:53, Danny Pansters wrote:
> On Wednesday 23 August 2006 23:58, Sebastian Kügler wrote:
> > I'm trying to make a KUniqueApplication accessible via dcop, but I'm
> > getting the following error:
> >
> > dcop-testapp: ERROR: Communication problem with dcop-testapp, it probably
> > crashed.
> >
> > If I change KUniqueApplication to KApplication, it works just fine. Does
> > anyone know what's going on here? How can I debug this further?
> >
> > Attached small program illustrates the problem (It's mostly the same as
> > in my previous post).
>
> When I used KUniqueApplication I used somewhat different methods for the
> appdata than you do, not all mentioned in the API may be supported by
> py-kde. That may be a lead.

Could you dig those up for me?

> But the thing that stands out is that you never show() your mainwindow. It
> may be implied by KApp but not by KUniqueApp (as this may already have an
> instance running). Just a thought...

It shouldn't be necessary (the testapp does not really have a mainWindow). In 
my "real application", I'm showing it at a later point (it's a systray app), 
that's where I got the error from. The attached code is just a minimal 
example.
-- 
sebas

 http://www.kde.org | http://vizZzion.org |  GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nothing ever becomes real until it is experienced. - John Keats


[Attachment #5 (application/pgp-signature)]

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic