Re: Segmentation fault after removing all rows from TreeStore



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]