This bug has been reported and fixed in the bug report
https://bugzilla.gnome.org/show_bug.cgi?id=709963
but the fix is not yet included in a glibmm release.
Kjell
2013-11-18 03:54, creak ml skrev:
Hi!
I was just trying to use clang++ to compile my gtkmm application and I
went to this error:
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_castBaseClassType*(
g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get
the
2013/11/18 Murray Cumming murr...@murrayc.com
If you are using a distro package of glibmm, please ask your distro to
update its glibmm package.
Will do! (I'm on ArchLinux)
___
gtkmm-list mailing list
gtkmm-list@gnome.org
Good morning/day/evening,
I am willing to use C++ binding for GStreamer in my application, developed
in VS under Windows.
I've found a question in this list from 2011 - the answer was that
gstreamermm support on Windows was planned but not yet implemented. Has
something changed in this years?
On 18/11/2013 14:59, Alan Mazer wrote:
The G_OBJECT_GET_CLASS macro is probably dereferencing gobject_, e.g.,
replacing it with gobject_-class or some such...
Perhaps so. That would certainly explain the crash if 'gobject_' was
NULL - but as I try to debug this issue things become even
Yes, G_OBJECT_GET_CLASS(gobject_) dereferences gobject_.
on_hide() should not be called when gobject_ is 0. Two possible reasons
it is called:
1. There is a bug in gtkmm 3.7.12 and 3.8.0 that can make such a call
happen.
See https://bugzilla.gnome.org/show_bug.cgi?id=605728#c5
That bug was
No crash when I run it on Linux (Ubuntu 13.10). When on_hide() is
called, gobject_ is not 0. I used gtkmm 2.24.4 instead of 2.24.2. I
would be surprised if that matters.
Seems quite similar to the problem you described in
https://mail.gnome.org/archives/gtkmm-list/2013-November/msg0.html
Many thanks for the suggestions guys. This problem has stumped me for
nearly a fortnight so I do appreciate your help!
On 18/11/2013 18:19, Alan Mazer wrote:
What happens if you provide a destructor (empty of course, but not
inlined) for your derived class?
Actually I did try that earlier