Re: Maemomm crash with Gtk::Dialog on maemo OS



On Wed, 2007-12-05 at 18:19 +0200, Lassi Väätämöinen wrote:
> I managed to find the cause for the problem. Building an object inherited from 
> Gtk::Window or Gtk::Dialog (in my case, at least) which contains 
> Gtk::Notebook object that in turn contains an 'actional' object, e.g., 
> Gtk::SpinButton or Gtk::Entry causes segmentation fault...
> 
> For example:
> 
> get_vbox()->pack_start(m_Notebook)
> m_Notebook.append_page(m_Vbox_Page1, "Test");
> m_Notebook.append_page(m_Vbox_Page2, "Page2");
> m_Vbox_Page1.pack_start(m_label);
> 
> WORKS OK, BUT:
> 
> 
> get_vbox()->pack_start(m_Notebook)
> m_Notebook.append_page(m_Vbox_Page1, "Test");
> m_Notebook.append_page(m_Vbox_Page2, "Page2");
> m_Vbox_Page1.pack_start(m_label);
> m_Vbox_Page1.pack_start(m_entry);
> 
> SEGFAULTS!!!
> 
> When the Notebook is left out and only using the 
> get_vbox()->pack_start(m_Vbox_Page1) and then appending stuff in Vbox causes 
> no crash. 

This doesn't make much sense to me. I still think that a simple test
case would show us the real problem.

Note that the ARM target on the actual device is much less forgiving of
memory issues. You can probably also find the problem by running under
valgrind in scratchbox.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]