When I open a secondary form, write some lines to a memo on it and then start a lengthy operation, the secondary form show up only AFTER that lengthy operation ends. That is despite processmessages calls just before the operation.
In the attachment I made an example. If I click [Process] the message is displayed on the memo, the operation is performed, and the end message is written. But if I press [To form] the secondary form shows up all grey and displays all messages AFTER the operation ended. That is not what I want: I want the start message to be visible BEFORE the operation starts.
What am I missing here ?
Lazarus 3.0 (2024-02-28), FreePascal 3.2.2 on Linux mint 21.1