When I run the code I get the following output:<br><br>Line: 48<div>Fail</div><div>Segmentation fault</div><div><br>Segmentation fault corresponds to line 58:</div><div><br>g_printerr(" 1 %S\n", error->message);<br>
<br>On Wed, Oct 5, 2011 at 9:38 PM, Iraq Ja <<a href="mailto:deadpixel01@gmail.com">deadpixel01@gmail.com</a>> wrote:<br>> When I run the code I get the following output:<br>> Line: 48 FailSegmentation fault<br>
> Segmentation fault corresponds to line 58:<br>> g_printerr(" 1 %S\n", error->message);<br>><br>> On Wed, Oct 5, 2011 at 7:10 PM, Thiago Macieira <<a href="mailto:thiago@kde.org">thiago@kde.org</a>> wrote:<br>
>> On Wednesday, 5 de October de 2011 18:45:52 Iraq Ja wrote:<br>>>> Hi,<br>>>><br>>>> In my program attached, the method call (line 50):<br>>>><br>>>><br>>>> if (dbus_g_proxy_call(proxy, "GetDevices", &error, G_TYPE_INVALID,<br>
>>> DBUS_TYPE_G_OBJECT_ARRAY, name_list_ptr, G_TYPE_INVALID))<br>>>> {<br>>>> printf("Success\n");<br>>>> g_printerr("List: %S \n", name_list_ptr);<br>
>>> }<br>>>> else<br>>>> {<br>>>> printf("Fail\n");<br>>>> g_printerr(" 1 %S\n", error->message);<br>>>> g_printerr(" 1 %S\n", name_list_ptr);<br>
>>> exit(1);<br>>>> }<br>>>><br>>>> does not return true, I think I've done everything correct as far as<br>>>> the parameters to dbus_g_proxy_call(), and setting everything up, but<br>
>>> for whatever reason it won't return true.<br>>><br>>> If it doesn't return true, it prints an error message. What was it?<br>>><br>>> --<br>>> Thiago Macieira - thiago (AT) <a href="http://macieira.info">macieira.info</a> - thiago (AT) <a href="http://kde.org">kde.org</a><br>
>> Software Architect - Intel Open Source Technology Center<br>>> PGP/GPG: 0x6EF45358; fingerprint:<br>>> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358<br>>><br>>> _______________________________________________<br>
>> dbus mailing list<br>>> <a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>>> <a href="http://lists.freedesktop.org/mailman/listinfo/dbus">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
>><br>>><br>><br><br></div>