dbus_connection_send_with_reply_and_block error

Thiago Macieira thiago at kde.org
Mon Feb 25 23:42:30 PST 2008


Sumit Kumar Jain wrote:
>I have a test code that calls
> dbus_connection_send_with_reply_and_block(). The API documentation says
> that the message is removed of the incoming queue and hence if we call
> dbus_connection_borrow_message(), it should return NULL. However thats
> not the case.
>
>Any help. Have I misinterpreted the documentation by any chance.

I don't think so. But your code does not prove that borrow_message is the 
same as reply.

In fact, I am pretty sure it isn't. You probably borrowed one of the 
signals that the D-Bus daemon sent you when you connected.

-- 
  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: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080226/cd1ecdf8/attachment.pgp 


More information about the dbus mailing list