Re: Gtk::Widget::on_hide



On 18/11/2013 19:16, John Emmas wrote:

On 18/11/2013 18:32, Kjell Ahlstedt wrote:

Seems quite similar to the problem you described in
https://mail.gnome.org/archives/gtkmm-list/2013-November/msg00000.html
Have you got any further with the trouble-shooting after
https://mail.gnome.org/archives/gtkmm-list/2013-November/msg00024.html ?

You're right, it's exactly the same issue. [...] I'll resume my trouble-shooting on that previous issue and report back what I find.


Okay, it only took a few minutes to resume my trouble-shooting so I've just added an update about what I found.

Getting back to the "MyDialog" example I supplied yesterday, this is the sequence of function calls when closing MyDialog on my system:-

1) Gtk::Widget::on_hide() // occurs on window closure (BEFORE the call to delete). Therefore 'gobject_' is still valid 2) Window::_destroy_c_instance() // occurs during the call to 'delete' and subsequently calls.... 3) Object::disconnect_cpp_wrapper() // invalidates 'gobject_' (sets it to NULL)
4)  Gtk::Widget::on_unrealize() // crashes because gobject_ == NULL

Kjell, if you can find some time today could you try building MyDialog and verify if you see the same sequence? If you do, we'll need to figure out why your gcc build is tolerant of gobject_ being NULL whereas my MSVC build isn't. I feel as if we're getting quite close to a solution though. Many thanks.

John


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