Recent

Author Topic: Failed to create win32 control, error: 0: The operation completed successfully  (Read 1993 times)

fedkad

  • Full Member
  • ***
  • Posts: 140
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?
« Last Edit: August 11, 2021, 06:13:10 pm by fedkad »

jamie

  • Hero Member
  • *****
  • Posts: 5020
Sounds like "recreatexxxxxx" is being used.
Such a bad idea because it causes detachment of any controls via handle.
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 5020
That would be "RecreateHandle" I believe.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018