[Lazarus] TColorButton gives errors in console output

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] TColorButton gives errors in console output

Free Pascal - Lazarus mailing list
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

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] TColorButton gives errors in console output

Free Pascal - Lazarus mailing list
On 08.05.2017 15:36, Graeme Geldenhuys via Lazarus wrote:

> 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.

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] TColorButton gives errors in console output

Free Pascal - Lazarus mailing list

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.


-- 
Regards,
Alexey

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] TColorButton gives errors in console output

Free Pascal - Lazarus mailing list
On 2017-05-08 18:35, Alexey via Lazarus 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

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus-ide.org/listinfo/lazarus