Re: [gtk-list] Cast checking error messages
- From: Tim Janik <timj gtk org>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Cast checking error messages
- Date: Thu, 25 Mar 1999 04:05:58 +0100 (CET)
On Thu, 25 Mar 1999 rowe@excc.ex.ac.uk wrote:
> Forgive me if this has already been done to death, but currently in
> their type debugging mode the various cast macros such as
> GTK_TOGGLE_BUTTON (widget) just give a warning like:
>
> Gtk-WARNING **: invalid cast from `GtkCheckMenuItem' to `GtkToggleButton'
>
> Now I sort of assume that the idea is to run under a debugger to find
> out where your error is but on my system (RH 5.2 Intel) this is
> rather difficult: g_warn is a macro for g_log and if I try to set a
> break point inside g_log gdb rather scarily gives me:
>
> Function "g_log" not defined.
>
> which makes me wonder if gcc is just inlining the whole thing.
>
> So how does one get some helpful information about where the problem
> is? (I put in the error above deliberately of course but you know..).
try running your programs with --g-fatal-warning in gdb.
>
> John
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]