Re: Equivalent of the gtk g_object_ref/unref functions in gtkmm?
- From: Murray Cumming <murrayc murrayc com>
- To: Jef Driesen <jefdriesen hotmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Equivalent of the gtk g_object_ref/unref functions in gtkmm?
- Date: Mon, 26 Mar 2007 16:49:42 +0200
On Mon, 2007-03-26 at 16:30 +0200, Jef Driesen wrote:
> Jonathon Jongsma wrote:
> > On 3/26/07, Jef Driesen <jefdriesen hotmail com> wrote:
> >> The application works fine, but closing the main window results in a
> >> segmentation fault (core dump). As far as I can tell (from a gdb
> >> backtrace) the crash is not in my own code, but somewhere inside the
> >> gtk(mm) library.
> >
> > Could you provide the backtrace? that might be helpful information.
>
> Sometimes I don't get the segmentation fault, but only a large number of
> errors. See attachment for both the backtrace and the errors.
If you get glib errors, try debuggin with --g-fatal-warnings, or with a
breakpoing on g_log. Then you'll get a backtrace at the relevant point.
valgrind's memcheck is also incredibly helpful. Trust us on this. You
won't regret trying it.
> > Also, trying to pare down your example to a more minimal test case
> > might help to pinpoint the problem.
>
> I'll try to reduce the example even more.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]