Re: [gtk-list] misleading error messages from style/set_nameproblems




On Fri, 19 Mar 1999, Paul Barton-Davis wrote:
> I'm getting quite a few of these (glib-1.2.0, gtk+-1.2.0, Gtk---1.0.0)
> 
> Gtk-CRITICAL **: file gtkobject.c: line 1037 (gtk_object_get_data):
>                                assertion `GTK_IS_OBJECT (object)' failed.
> 
> Gtk-WARNING **: invalid class type `gchar' in cast to `GtkObject'
> 
> These are *very* unhelpful messages. As best I can tell, they arise
> from having used gtk_widget_set_name() with an argument that doesn't
> resolve to a known style (i.e. an rc file says "widget FOO style BAR",
> calling gtk_widget_set_name (FOO), but BAR isn't found). 
> 

Unlikely (but possible I guess). If a name doesn't resolve to a known
style it's not an error, it just uses the default style.

This kind of error often means "memory corruption," in particular "the
supposed GtkObject is actually random garbage." Thus the type flag is
wrong. So you might look for a bug like that.

Havoc





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]