On Fri, 27 Jan 2006 23:32:16 +0100 Patrick Chevalley <[EMAIL PROTECTED]> wrote:
> > Can you update and try compiling lazarus with -dDisableWidgetColor? > > This not change the problem. > I add a few DebugLn in SetWidgetColor, just before your ifdef. > By comparison of the trace with a working theme the segfault occur after > the last passage to SetWidgetColor. The SetWidgetColor should be irrelevant, because with -dDisableWidgetColor nothing really happens. The rest of the patch looks pretty normal, just some missing 'if not HandleAllocated' missing. But I added that the last time, so this is not the reason. Can you add a 'DumpStack;' in front of the 'exit;' and test. Then we can see at least, what sets the colors. Mattias > > Starting program: /home/pch/lazarus/lazarus > Reading symbols from shared object read from target memory...done. > ..... > SetWidgetColor Start > SetWidgetColor ChangeFGColor:=FALSE > SetWidgetColor ChangeBGColor:=TRUE > SetWidgetColor DisableWidgetColor exit > ..... > SetWidgetColor Start > SetWidgetColor ChangeFGColor:=FALSE > SetWidgetColor ChangeBGColor:=FALSE > SetWidgetColor exit > SetWidgetColor Start > SetWidgetColor ChangeFGColor:=FALSE > SetWidgetColor ChangeBGColor:=FALSE > SetWidgetColor exit > > Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget' > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1213147456 (LWP 8596)] > 0xb79ad411 in gdk_rgb_find_color () from > /usr/lib/gtk/themes/engines/libgalaxy.so > Current language: auto; currently c > (gdb) bt > #0 0xb79ad411 in gdk_rgb_find_color () from > /usr/lib/gtk/themes/engines/libgalaxy.so > #1 0x00000000 in ?? () > > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
