<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The issue is that is it is failing at the dbus_bus_get line in the
code, it is returning the error I have listed below in the email. I
am using dbus to monitor USB hard disks being mounted on the system,
I have found an issue whereby hald is crashing out as it can't read
/proc/mounts so I am guessing that is why it's failing.<br>
<br>
Thanks, Andy<br>
On 9/27/10 7:31 PM, Sathia Narayanan wrote:
<blockquote
cite="mid:AANLkTin32yMd0XDqVMvb6cStoKjdzYGtVN_i4kgiqNgR@mail.gmail.com"
type="cite">
<div>You are connecting the system bus and tring to access what?
and how? </div>
<div><br>
<br>
</div>
<div class="gmail_quote">On Mon, Sep 27, 2010 at 11:37 AM, Andy
Bell <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:andy@j2kvideo.com">andy@j2kvideo.com</a>></span>
wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204);
margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"
class="gmail_quote">Hi,
<div><br>
</div>
<div>I have started to develop a client using a D-Bus service.
For some reason I am always getting an error on
initialisation using the following code:</div>
<div>
<div><br>
</div>
<div> DBusConnection * connection;</div>
<div> DBusError error;</div>
<div><br>
</div>
<div> LibHalContext * ctx;</div>
<div> dbus_error_init( &error );</div>
<div> connection = dbus_bus_get( DBUS_BUS_SYSTEM,
&error );</div>
<div><br>
</div>
<div> if ( dbus_error_is_set( &error ) )</div>
<div> {</div>
<div> return 0;</div>
<div> }</div>
<div><br>
</div>
<div>In the logs I am getting:</div>
<div><br>
</div>
<div>
<div>Unable to connect to DBus: 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.</div>
</div>
<div><br>
</div>
<div>Checking the service messagebus I have:</div>
<div><br>
</div>
<div>
<div>service messagebus status</div>
<div>dbus-daemon (pid 1773) is running...</div>
</div>
<div><br>
</div>
<div>I haven't touched the configuration system.conf so I am
a little lost why I can't connect to the daemon.</div>
<div><br>
</div>
<div>Any ideas or pointers?</div>
<div><br>
</div>
<div>Thanks in advance, Andy</div>
</div>
<br>
_______________________________________________<br>
dbus mailing list<br>
<a moz-do-not-send="true"
href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freedesktop.org/mailman/listinfo/dbus"
target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Andy Bell
CTO
J2K Video Limited
T: +34 968 972 803
T: +44 (0)20 8133 2473
M: +34 685 130097
E: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:andy@j2kvideo.com">andy@j2kvideo.com</a>
W: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.j2kvideo.com">www.j2kvideo.com</a></pre>
</body>
</html>