RE: [gtkmm] TreeView Model, SEGV on append
- From: "Ohrnberger, Erik" <erik_ohrnberger dme net>
- To: 'Vladislav Grinchenko' <vgrinche integ com>, "Ohrnberger, Erik" <erik_ohrnberger dme net>
- Cc: gtkmm-list gnome org
- Subject: RE: [gtkmm] TreeView Model, SEGV on append
- Date: Tue, 11 Nov 2003 15:30:16 -0500
Vlad,
Many thanks. My, how great minds think alike. I just tried that
about 5 minutes ago, with the same result as before.
I'm definitely going to check out that source code. I'm hoping that
it'll trip some weak, miss-firing neuron in my head as to what I have
different.
Thanks again!
Erik.
> -----Original Message-----
> From: Vladislav Grinchenko [mailto:vgrinche integ com]
> Sent: Tuesday, November 11, 2003 3:06 PM
> To: Ohrnberger, Erik
> Cc: gtkmm-list gnome org
> Subject: Re: [gtkmm] TreeView Model, SEGV on append
>
>
> Erik,
>
> try
>
> Gtk::TreeModel::iterator iter = pMoldListModel->append ();
> Gtk::TreeModel::Row row = *iter;
>
> For a full-blown example, see
>
> http://home.comcast.net/~3rdshift/gtkmm/index.html
>
> The code snippet you would be interested in is in MainWindow_ui.cpp,
> somewhere around line 329.
>
> hope this helps,
> Vlad
>
> On Tue, Nov 11, 2003 at 02:46:44PM -0500, Ohrnberger, Erik wrote:
> > Fredrick,
> > Yes, in the CTOR:
> >
> > // create model
> > pCols = new MoldListCols();
> > pMoldListModel = ListStore::create( *pCols );
> > tvMoldList.set_model( pMoldListModel );
> >
> > In the Add method:
> > TreeModel::Row row;
> > row = *( pMoldListModel->append() ); <<=== SEGV!
> >
> > Cheers,
> > Erik.
> >
>
> --
> ______________________________________________________
> Vladislav Grinchenko e-mail (w): vgrinche integ com
> Software Engineer (h): 3rdshift comcast net
> Integral Systems, Inc.
>
> Focus on quality, and productivity will follow.
> ______________________________________________________
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]