Re: Segmentation fault after removing all rows from TreeStore
- From: Marcin Dec <resu liamg yppah gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Segmentation fault after removing all rows from TreeStore
- Date: Fri, 23 Jan 2009 10:59:46 +0100
Hi
I found a solution. Instead of calling Gtk::TreeStore::clear() method I wrote something like this:
Gtk::TreeNodeChildren c = m_ref_store->children();
while (!c.empty())
{
Gtk::TreeStore::iterator iter = c.begin();
m_ref_store->erase(iter);
}
It works for me, I don't get "Segmentation fault" message, but I still wonder why Gtk::TreeStore::clear() method doesn't work.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]