Re: Associating data with list store
- From: Murray Cumming <murrayc murrayc com>
- To: Robert Pearce <rob bdt-home demon co uk>
- Cc: gtkmm-list gnome org
- Subject: Re: Associating data with list store
- Date: Sat, 02 Jun 2007 19:33:56 +0200
On Sat, 2007-06-02 at 18:30 +0100, Robert Pearce wrote:
> 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.
The tutorial really shouldn't do that. Could you file a bug (or patch,
please. The examples are in example/book/) with the exact details.
> 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.
> gtkmm-list mailing list
> gtkmm-list gnome org
murrayc murrayc com
] [Thread Prev