Recent

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

fedkad

  • Full Member
  • ***
  • Posts: 176
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 »
Lazarus 2.2.6 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

fedkad

  • Full Member
  • ***
  • Posts: 176
This problem does not seem to exist in version 2.2.0. Can somebody check it?
Lazarus 2.2.6 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
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.
« Last Edit: January 21, 2022, 11:03:00 am by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

fedkad

  • Full Member
  • ***
  • Posts: 176
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.
« Last Edit: January 21, 2022, 11:20:24 am by fedkad »
Lazarus 2.2.6 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

AlexTP

  • Hero Member
  • *****
  • Posts: 2402
    • UVviewsoft
Can you test in the 2.2 Release Candidate? 2.0.12 is old one.

fedkad

  • Full Member
  • ***
  • Posts: 176
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.
Lazarus 2.2.6 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

dseligo

  • Hero Member
  • *****
  • Posts: 1221
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