Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-05

TColorButton gives errors in console output

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I have a form with many TColorButton widgets (defined in LCL's Dialog unit). Whenever I load that form, I see tons of errors as follows in the console window.

================================
$000000000071B5C5 line 729 of lazloggerbase.pas
$0000000000800975 line 5554 of gtk2/gtk2winapi.inc $0000000000765B8B line 485 of include/winapi.inc
$00000000007506A1 line 261 of include/brush.inc
$0000000000750494 line 210 of include/brush.inc
$0000000000755878 line 181 of include/canvas.inc
$0000000000759E09 line 1718 of include/canvas.inc
$0000000000758A60 line 1162 of include/canvas.inc
$0000000000758AC2 line 1175 of include/canvas.inc
ERROR: [TGtk2WidgetSet.GetSysColorBrush] Bad Value: 32. Valid Range between 0 and 31 ================================

I presume this should not happen, and is a bug in LCL-GTK2?

Regards,
Graeme

Reply by email

zeljko
to Graeme Geldenhuys
Graeme Geldenhuys wrote 21 lines
Hi, I have a form with many TColorButton widgets (defined in LCL's Dialog unit). Whenever I load that form, I see tons of errors as follows in the console window. ================================ $000000000071B5C5 line 729 of lazloggerbase.pas $0000000000800975 line 5554 of gtk2/gtk2winapi.inc $0000000000765B8B line 485 of include/winapi.inc $00000000007506A1 line 261 of include/brush.inc $0000000000750494 line 210 of include/brush.inc $0000000000755878 line 181 of include/canvas.inc $0000000000759E09 line 1718 of include/canvas.inc $0000000000758A60 line 1162 of include/canvas.inc $0000000000758AC2 line 1175 of include/canvas.inc ERROR: [TGtk2WidgetSet.GetSysColorBrush] Bad Value: 32. Valid Range between 0 and 31 ================================ I presume this should not happen, and is a bug in LCL-GTK2?

Obviously it's bug (if TColorButton calls SysColorBrush with invalid range).

z.

Reply by email

Graeme Geldenhuys
to Alexey
Alexey wrote
>> I presume this should not happen, and is a bug in LCL-GTK2? Can you post somewhere small proj? I made proj with one btn, I don't see this error.

The usage is in part of a large form and project, but I'll see what I can do of course. I'll post it in Mantis with a bug report.

Regards,
Graeme

Reply by email