[gtkada] Problem using Gtk_Label
Emmanuel Briot
briot at adacore.com
Mon Feb 1 09:15:19 CET 2016
> Im trying to use labels under GtkAda but the following declaration and assignment in my program compiles and builds OK.
> aLabel : Gtk_Label;
>
> aLabel := gtk_label_new;
> with no other references to aLabel.
>
> When I run the program it crashes with:
> (process:10666): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
>
> (process:10666): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion 'G_IS_OBJECT (object)' failed
There is no way we can help without a reproducer here.
This is an operation that works in general, of course, and we don't know the rest of your code and whether this
single statement is responsible for the failure.
You could try using a debugger and checking that gtk_label_new is indeed called.
regards
Emmanuel
More information about the gtkada
mailing list