<br><br><div class="gmail_quote">On Thu, May 14, 2009 at 12:00 PM, Dariusz Mikulski <span dir="ltr"><malcolm@sourcecode.pl></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">thiagoss wrote:<br>
> I'm learning TelepathyQt4 and there seems to be a problem with<br>
> PendingOperation. My toy application is intended to list gmail<br>
> contacts and it is far from complete. The code is here:<br>
> <a href="http://pastebin.com/m449df281" target="_blank">http://pastebin.com/m449df281</a><br>
><br>
> The function in lines 31-50 request the connection to the jabber<br>
> server, but I get 'WARNING: Tp::PendingOperation(0x2a17480) still<br>
> pending when it was deleted - finished will never be emitted ' on the<br>
> console and I don't know how to proceed.<br>
><br>
> What am I doing wrong?<br>
><br>
<br>
</div>In 41 line you create new shared pointer "Tp::ConnectionPtr conn =<br>
pc->connection();" and in 46 connecting it. Its wrong becouse your<br>
pointer is destroyed when function connectionCreatedFinished end.<br>
You can try to move your pointer to private members of the MainWindow class.<br>
</blockquote><div><br>Thanks, that solved my problem.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
--<br>
Br,<br>
Dariusz Mikulski<br>
<br>
Collabora Ltd.<br>
<a href="http://www.collabora.co.uk/" target="_blank">http://www.collabora.co.uk/</a><br>
<br>
_______________________________________________<br>
telepathy mailing list<br>
<a href="mailto:telepathy@lists.freedesktop.org">telepathy@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/telepathy" target="_blank">http://lists.freedesktop.org/mailman/listinfo/telepathy</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Thiago Sousa Santos<br><br>Embedded Systems and Pervasive Computing Lab (Embedded)<br>Center of Electrical Engineering and Informatics (CEEI)<br>Federal University of Campina Grande (UFCG)<br>