I will try to explain better:<br> when I run my application for the first time it will start geoclue-gpsd provider automatically. Then everything is ok, I can use my application properly.<br>When I close my program I have noticed that geoclue-gpsd remains alive (as expected).<br>
Then, if I try to restart my application again I have this problem:<br><br><span style="font-family: courier new,monospace;">Using provider 'Gpsd'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Error getting position: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.</span><br>
<br>But, if I kill geoclue-gpsd and I restart my application everything is ok.<br><br><div class="gmail_quote">On Thu, Apr 17, 2008 at 1:12 PM, Jussi Kukkonen <<a href="mailto:jhkukkon@cc.hut.fi">jhkukkon@cc.hut.fi</a>> 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="Ih2E3d">Emanuele Leomanni wrote:<br>
> I have seen that when I run my application developed using geoclue API all<br>
> providers needed are executed automatically.<br>
<br>
</div>The automatic shutdown didn't really work as intended (see my status<br>
update post couple of days ago): I'm currently working on this on<br>
"refcount" git branch, will post a mail about it soon.<br>
<br>
Still, I don't understand this:<br>
<div class="Ih2E3d"><br>
> If I kill my application the provider is still alive and I am not able<br>
> to run the application again.<br>
> It seems as if the provider is not able to shutdown.<br>
> There is a solution for this without killing every time the provider<br>
> by hand?<br>
<br>
</div>You should never have to kill or start providers by hand... and a<br>
provider does not really "need" to shut down, that's just something I've<br>
added to keep memory usage down -- it should be able the respond to<br>
multiple clients. As a matter of fact there could be NO_AUTO_SHUTDOWN<br>
option (either compile- or run-time) if that's wanted.<br>
<br>
Are you sure the dbus autostart works? In other word, you're not<br>
starting the provider by hand in the first place?<br>
<font color="#888888"><br>
Jussi<br>
<br>
</font></blockquote></div><br>