RE: [gtkmm] TreeView Model, SEGV on append
- From: "Ohrnberger, Erik" <erik_ohrnberger dme net>
- To: "'Murray Cumming Comneon com'" <Murray Cumming Comneon com>, gtkmm-list gnome org
- Subject: RE: [gtkmm] TreeView Model, SEGV on append
- Date: Tue, 11 Nov 2003 14:25:17 -0500
Murray,
Yes it does make sense to me. I didn't think that it would make a
difference on how the instances were allocated, but was just double checking
to make sure.
See, the problem is:
I have a class that public ally inherits from Gtk::ScrolledWindow,
has Gtk::TreeView and Glib::RefPtr<Gtk::ListStore> members for the widget
and the mode respectively, as well as a pointer to a class that implements
the columns in the TreeView.
On the CTOR of this class, the columns class is new'ed, the model is
created, and the treeview is connected to the model, and added to the
inherited ScrolledWindow.
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.
It's basically driving me nutz. The darn thing should work just as it is,
but ain't.
Grrr.
Cheers anyway,
Erik.
> -----Original Message-----
> From: Murray Cumming Comneon com [mailto:Murray Cumming Comneon com]
> Sent: Tuesday, November 11, 2003 2:13 PM
> To: erik_ohrnberger dme net; Murray Cumming Comneon com;
> gtkmm-list gnome org
> Subject: RE: [gtkmm] TreeView Model, SEGV on append
>
>
> Ohrnberger, Erik [mailto:erik_ohrnberger dme net]
> > Just trying to figure out what the heck's going on here on this.
>
> Really, I don't understand what is confusing you. If you can
> explain what
> does not make sense to you then maybe we can be more helpful.
> gtkmm is meant
> to be fairly intuitive to people who already know C++. The use of both
> new/delete and automatic instances in the same C++ source
> code is very very
> common.
>
> Murray Cumming
> www.murrayc.com
> murrayc usa net
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]