Hi, I'm facing the same problem, which version of glib are you using ? I'm using the 2.28.8, and I'm working on embedded ARM device.
I tried to run the test gdbus-serialization, first on my computer (x86_64) and there is no problem. Then I run it on the target I'm working on (armv5tejl), and I got this result : ERROR:gdbus-serialization.c:600:check_serialization: assertion failed (s == expected_dbus_1_output): value 0: string: `this is a string' value 1: object_path: `/this/is/a/path' value 2: signature: `sad' value 3: byte: 0x2a value 4: bool: true value 5: int16: -42 value 6: uint16: 60000 value 7: int32: -44 value 8: uint32: 100000 value 9: int64: -34359738368 value 10: uint64: -1 value 11: double: 7.521667 == value 0: string: `this is a string' value 1: object_path: `/this/is/a/path' value 2: signature: `sad' value 3: byte: 0x2a value 4: bool: true value 5: int16: -42 value 6: uint16: 60000 value 7: int32: -44 value 8: uint32: 100000 value 9: int64: -34359738368 value 10: uint64: 18446744073709551615 value 11: double: 42.500000 We can see the value 10 and 11 are wrong. Regards, Peter Jönsson wrote: > > Hi, > > I am trying to send a double with GDbus between two C programs, but > receives a faulty value. > > Sender > gdouble value = 3.0; > > g_dbus_proxy_call_sync (proxy, method_name, g_variant_new("(d)",value), > G_DBUS_CALL_FLAGS_NONE, -1, NULL, &dbus_err); > > In my receiver function > I get like (8.7357865410490269e-313,) when I print out the inparameters. > > If I change the introspect to "i" instead and sends a int all works fine. > > Any help I appreciated! > > Regards > Peter > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > -- View this message in context: http://old.nabble.com/Problem-sending-double-with-GDbus-tp32691864p32873843.html Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list