Sign in Join

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

Mailing lists / lazarus / 2010-06

creating Handle during loading

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

theo

Hello

I'm trying to write a component. It's working fine so far, but I'm getting these hints on the console:

[HINT] TWinControl.CreateWnd creating Handle during loading Form1:TForm1 csDesigning=False
[HINT] TWinControl.CreateWnd creating Handle during loading ThumbControl1:TThumbControl csDesigning=False

It happens when I run an application which is using the IDE-installed component, not when creating the are only hints and it's working fine, but I wonder how to get rid of them.

Any ideas what is tipically causing this?

Thank you
Best regards
Theo

Reply by email

Mattias Gaertner
to theo
Show quoted text 16 lines
Hello I'm trying to write a component. It's working fine so far, but I'm getting these hints on the console: [HINT] TWinControl.CreateWnd creating Handle during loading Form1:TForm1 csDesigning=False [HINT] TWinControl.CreateWnd creating Handle during loading ThumbControl1:TThumbControl csDesigning=False It happens when I run an application which is using the IDE-installed component, not when creating the component at runtime. These are only hints and it's working fine, but I wonder how to get rid of them. Any ideas what is tipically causing this?

It means that while the TThumbControl is loading
properties it already tries to execute them. This creates unnecessary overhead. Improve ThumbControl to only access the Handle when needed.

Mattias

Reply by email

theo
to Mattias Gaertner
It means that while the TThumbControl is loading properties it already tries to execute them. This creates unnecessary overhead. Improve ThumbControl to only access the Handle when needed.

Thank you Matthias,
I had to move some code to CreateWnd, now it's quiet. :-)

Thanks
Best regards
Theo

Reply by email