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: fedkad on January 21, 2022, 10:56:24 am
This problem does not seem to exist in version 2.2.0. Can somebody check it?
Title: Re: Failed to create win32 control, error: 0: The operation completed successfully
Post by: Thaddy on January 21, 2022, 11:00:11 am
Checked. Can not reproduce on 2.2.0 and 2.3 (trunk from today, 32 bit cross compiled)
Ideally I would like to see an attached project. That would make testing a lot easier than creating a project myself.
In general it is almost always advisable to upgrade to the most current release version and that is not the case here.
Title: Re: Failed to create win32 control, error: 0: The operation completed successfully
Post by: fedkad on January 21, 2022, 11:08:29 am
Checked. Can not reproduce on 2.2.0 and 2.3 (trunk from today, 32 bit cross compiled)
Ideally I would like to see an attached project. That would make testing a lot easier than creating a project myself.
In general it is almost always advisable to upgrade to the most current release version and that is not the case here.

Attached project? Please find it in the attached TEST.ZIP file. I can confirm that the problem does exist in 2.0.12.0 (32 and 64-bit Windows).

Note: In some cases (I don't know when), you may have to fill the Memo with more than 250KB of text for this error to occur.
Title: Re: Failed to create win32 control, error: 0: The operation completed successfully
Post by: AlexTP on January 21, 2022, 11:23:16 am
Can you test in the 2.2 Release Candidate? 2.0.12 is old one.
Title: Re: Failed to create win32 control, error: 0: The operation completed successfully
Post by: fedkad on January 21, 2022, 11:27:22 am
As I already mentioned, the problem does not seem to be present in version 2.2.0 (32 and 64-bit Windows versions).

However, I haven't found any reference to this in the change log.
Title: Re: Failed to create win32 control, error: 0: The operation completed successfully
Post by: dseligo on January 21, 2022, 11:33:47 am
Can you test in the 2.2 Release Candidate? 2.0.12 is old one.

Release candidate 2.2 is also old now, 2.2 is released. :)
TinyPortal © 2005-2018