[Telepathy] TelepathyQt4 - Problem with PendingOperation

thiagoss thiagoss at embedded.ufcg.edu.br
Fri May 15 10:21:35 PDT 2009


On Thu, May 14, 2009 at 12:00 PM, Dariusz Mikulski <malcolm at sourcecode.pl>wrote:

> thiagoss wrote:
> > I'm learning TelepathyQt4 and there seems to be a problem with
> > PendingOperation. My toy application is intended to list gmail
> > contacts and it is far from complete. The code is here:
> > http://pastebin.com/m449df281
> >
> > The function in lines 31-50 request the connection to the jabber
> > server, but I get 'WARNING: Tp::PendingOperation(0x2a17480) still
> > pending when it was deleted - finished will never be emitted ' on the
> > console and I don't know how to proceed.
> >
> > What am I doing wrong?
> >
>
> In 41 line you create new shared pointer "Tp::ConnectionPtr conn =
> pc->connection();" and in 46 connecting it. Its wrong becouse your
> pointer is destroyed when function connectionCreatedFinished end.
> You can try to move your pointer to private members of the MainWindow
> class.
>

Thanks, that solved my problem.


>
> --
> Br,
> Dariusz Mikulski
>
> Collabora Ltd.
> http://www.collabora.co.uk/
>
> _______________________________________________
> telepathy mailing list
> telepathy at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/telepathy
>



-- 
Thiago Sousa Santos

Embedded Systems and Pervasive Computing Lab (Embedded)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/telepathy/attachments/20090515/e4f7613b/attachment.html 


More information about the telepathy mailing list