RE: [gtkmm] TreeView Model, SEGV on append
- From: "Ohrnberger, Erik" <erik_ohrnberger dme net>
- To: gtkmm-list gnome org
- Subject: RE: [gtkmm] TreeView Model, SEGV on append
- Date: Tue, 11 Nov 2003 14:46:44 -0500
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.
> -----Original Message-----
> From: Fredrik Arnerup [mailto:e97_far e kth se]
> Sent: Tuesday, November 11, 2003 2:46 PM
> To: Ohrnberger, Erik
> Cc: 'Murray Cumming Comneon com'; gtkmm-list gnome org
> Subject: Re: [gtkmm] TreeView Model, SEGV on append
>
>
> On 2003.11.11 20:25, "Ohrnberger, Erik" wrote:
> > Later in the execution, there is a need to add a single additional
> > row to the treeview, however in this method of the class, I get a
> > SEGV in the call into the model's append method (
> > Glib::RefPtr<Gtk::ListStore>->append() ) and I can't figure out why.
>
> Well, do you set the Glib::RefPtr<Gtk::ListStore> member to anything?
> Otherwise it is just null.
>
> /Fredrik Arnerup
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]