<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> Hi ,<br>I am using GDbus, and sending a response from a an asynchronous method call.<br>To realize this I call a request method (void ReqAvg (int A, int B)) and respond with RespAvg(int C);<br>RespAvg is a function that is exposed on the process which calls ReqAvg.<br><br>This is how it looks<br><br>void ReqAvg(int A, int B)<br>{<br>int C= (A+B)/2;<br>msg = dbus_message_new_method_call(iServiceName,<br> InterfacePath,<br> InterfaceName,<br> "ResAvg");<br>..<br>initialize iterator<br>append args<br>send<br><br>}<br><br>I am getting the following warning and sometimes the function ResAvg is called twice.Let em know the correct method of doing it.<br><br>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Monospace'; font-size:9pt; color:#be1414;"> arguments to dbus_message_ref() were incorrect, assertion "!message->in_cache" failed in file ../../dbus/dbus-message.c line 1530.</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="font-family: 'Monospace'; font-size: 9pt; color: rgb(190, 20, 20);">This is normally a bug in some application using the D-Bus </span>
<style type="text/css">
p, li { white-space: pre-wrap;</style><span style=" font-family:'Monospace'; font-size:9pt; color:#be1414;">library.</span></p><br><br><br>Sruthi M<br>Systems Engineer<br>Tata Consultancy Services<br>Ph:- +91 080 67244309<br>Cell:- +919986913042<br>Mailto: sruthi.m@tcs.com<br>Website: http://www.tcs.com<br>____________________________________________<br>Experience certainty.        IT Services<br>                        Business Solutions<br>                        Outsourcing<br>____________________________________________<div></div></font><p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>
<p></p>