Gtk::Widget::on_hide
- From: John Emmas <johne53 tiscali co uk>
- To: gtkmm <gtkmm-list gnome org>
- Subject: Gtk::Widget::on_hide
- Date: Mon, 18 Nov 2013 14:53:00 +0000
I'm trying to debug a program which keeps crashing in
'Gtk::Widget::on_hide()'. Here's what that function looks like:-
void Gtk::Widget::on_hide()
{
BaseClassType *const base = static_cast<BaseClassType*>(
g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get
the parent class of the object class (The original underlying C class).
);
if(base && base->hide)
(*base->hide)(gobj());
}
Every time the crash occurs, variable 'gobject_' is always NULL.
Although I'm currently trying to figure out why, the above code looks
(to my untrained eye) as though it should be reasonably well behaved
with a NULL gobject_. It looks as if that function should be safe, even
when gobject_ is NULL. Is that a reasonable assessment or just wishful
thinking on my part?
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]