On Mon, 25 Apr 2022, Thomas Kurz via fpc-pascal wrote:
This is a very elegant solution but it can only be used for Synchronize, right? Because with ForceQueue I cannot know when it's done and freeing within Run (i.e. "Self.Free") would fail.
Why would this fail according to you ? I have used this approach on multiple occasions. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal