Cannot get GetDevices ( ) method to work.

Iraq Ja deadpixel01 at gmail.com
Wed Oct 5 13:38:37 PDT 2011


When I run the code I get the following output:
Line: 48 FailSegmentation fault
Segmentation fault corresponds to line 58:
g_printerr(" 1 %S\n", error->message);

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


More information about the dbus mailing list