Lazarus

Using the Lazarus IDE => General => Topic started by: fedkad on August 11, 2021, 05:49:34 pm

Title: Failed to create win32 control, error: 0: The operation completed successfully
Post by: fedkad on August 11, 2021, 05:49:34 pm
Create a TMemo and a TButton on an empty form. Fill TMemo's Lines property with text data larger than 64KB. Try to change the BorderStyle property of TMemo's. You will get the message:

Quote
Failed to create win32 control, error: 0: The operation completed successfully.

and Lazarus will crash.

Exactly the same thing happens when you do the above at "run-time".

This happens only in Windows and not in Linux.

Lazarus 2.0.12 / FPC 3.2.0 / x86_64-win64-win32/win64 (Running on Windows 10)

Can somebody recreate this in his/her environment? Is it a bug that needs to be reported?
Title: Re: Failed to create win32 control, error: 0: The operation completed successfully
Post by: jamie on August 11, 2021, 06:01:01 pm
Sounds like "recreatexxxxxx" is being used.
Such a bad idea because it causes detachment of any controls via handle.
Title: Re: Failed to create win32 control, error: 0: The operation completed successfully
Post by: jamie on August 12, 2021, 02:33:00 am
That would be "RecreateHandle" I believe.
TinyPortal © 2005-2018