Hi Dave, I did include the sample code in my previous mail. http://www.gossamer-threads.com/lists/maemo/developers/61353 I am including the code again for your reference: I am getting the error "HAL context initializing failure" in my below code When i debug the code it says unable to access memory at 0x0.
Code: DBusConnection *connection; DBusError error; LibHalContext *ctx; dbus_error_init(&error); if((connection = dbus_bus_get(DBUS_BUS_SYSTEM,&error)) == NULL) { printf("Error %s\n",error.message); return 1; } if ( dbus_error_is_set(&error) ) { printf("Unable to connect to DBus: %s\n",error.message); return 1; } if((ctx = libhal_ctx_new())==NULL) { printf("Error %s\n",error.message); return 1; } if ( !libhal_ctx_set_dbus_connection(ctx, connection) ) { printf("Error %s\n",error.message); return 1; } if ( !libhal_ctx_init(ctx, &error) ) { printf("Hal context initializing failure %s\n",error.message); return 1; } else { printf("Success"); return 0; } Thanks & Regards.
_______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers