Hi Murray,
On Sat, 02 Jun 2007 18:43:37 +0200 you wrote:
> On Sat, 2007-06-02 at 15:49 +0100, Robert Pearce wrote:
> > (process:27325): GLib-GObject-CRITICAL **: gtype.c:2242: initialization
> > assertion failed, use IA__g_type_init() prior to this function
>
> This is probably due to a static instance somewhere in your code. It's
> generally impossible to ensure that glibmm/gtkmm is initialized before
> static instances, because the sequence of static instance initialization
> is not well defined.
>
I believe the only static instance of anything is the
TreeModelColumnRecord-derived
static DLF_ModelColumns DLF_Columns;
This is how the tutorial creates it, because it's needed purely as a reference
point for doing stuff. Perhaps the tutorial is misleading, and I ought to
create it as a member of the class that uses the TreeView?
Anyway, I discovered I could avoid the problems by declaring my pointer as
Gtk::TreeModelColumn<void*> dataitem;
This does mean that every time I use it I have to explicitly type-cast, which
is ugly, but it seems to work.
Thanks,
Rob
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list