[Lazarus] creating Handle during loading

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Jun 19 16:26:04 CEST 2010


On Sat, 19 Jun 2010 16:14:50 +0200
theo <xpde at theo.ch> wrote:

> 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




More information about the Lazarus mailing list