Hi <br>I have written one server which have one method sum which is exposed to client through DBUS. my client calls this method with 2 input parameters and one output parameter (collect the sum of 2 input nos), but i am not able to receive any change in my output parameter though the method is executed.<br><br>Following is my XML file<br><?xml version="1.0" encoding="UTF-8" ?><br><br><node name="/com/example/MyServer"><br> <br> <interface name="com.example.MyServer"><br> <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="my_server"/><br> <method name="NoArgs"><br> <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="my_server_no_args"/><br> </method><br><br> <method name="Sum"><br> <annotation name="org.freedesktop.DBus.GLib.CSymbol"
value="my_server_sum"/><br> <arg type="i" name="num1" direction="in" /><br> <arg type="i" name="num2" direction="in" /><br> <arg type="i" name="sum" direction="out" /><br> </method><br><br> </interface><br></node><br><br>Following is the implementation of function in server<br><br>gboolean my_server_sum(int num1,int num2,int *sum)<br>{<br> printf("\n num1 = %d num2 = %d sum = %d \n",num1,num2,sum); <br> *sum = num1 + num2;<br> return TRUE;<br>}<br><br><br>Following is the call in client<br>com_example_MyServer_sum (proxy,num1,num2,ptr,&error);<br>where int num1 = 4, num2 = 3 <br>ptr is integer pointer holding add of integer variable.<br><br>printf on server side prints <br><br>num1 = 134546064 num2 = 4 sum = 3<br><br>why is this
happening?<br><br><br><br><br><br><br><br><p> 
        
        
                <hr size=1></hr>
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a>