<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi<br><br> I'm trying to call a function that is in ipcserver process from ipcclient.<br><br>
I follow the example in
http://folks.o-hand.com/iain/single-instance-with-dbus/making-single-instance-programs-with-dbus.html.<br><br>
Calling org_myorg_SingleInstanceInterface(...) which would call
dbus_g_proxy_call, a error message is got after long time of waiting:<br><pre><i><i>Did not receive a reply. <br>Possible causes include: <br>the remote application did not send a reply,<br> the message bus security policy blocked the reply, <br>the reply timeout expired, <br>or the network connection was broken.<br> <br></i></i> I look for the problems, but failed. Both single_instance_factory_class_init and<br>single_instance_factory_init (SingleInstanceFactory *factory) in the<br>server were called. The proxy<br> value in the client I got was a valid<br>value as well. <br><br> Could you help me to figure it out? Your reply will be greatly appreciated.<br><br><br>The problem was solved.<br><br>The reason to that is the event loop i adopting is ecore loop. When GMainLoop is added <br>the dbus_g_proxy_call was return in a flash.<br><br> GMainLoop *mainloop;<br> mainloop = g_main_loop_new (NULL, FALSE);<br><br> ...<br> g_main_loop_run
(mainloop);<br><br>thanks very much for your care.<br><br>cheers!<br><br><br><br><br></pre></td></tr></table><br>