[Lazarus] Lazarus and Application.ProcessMessages

Flávio Etrusco flavio.etrusco at gmail.com
Sun Dec 7 20:50:10 CET 2014


On Sat, Dec 6, 2014 at 1:15 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> On Sat, 06 Dec 2014 16:02:40 +0100
> JuuS <JuuS at mykolab.ch> wrote:
>
>> Hi all,
>>
>> A bit late with this and haven't read everything through and through but...
>>
>> I worked with Delphi for some time and, yes, Application.Processmessages
>> brings system to knees and processor to 100%.
>>
>> But in Delphi there was also an Application.Handlemessage...used like this:
>>
>>     repeat
>>       Application.HandleMessage;
>>     until AKeyPressed (or whatever);
>>
>> ...and the system is calm (normal load) and the program responsive. It
>> was like Handlemessage was sipping water drops dripping from a fern
>> leaf, while Processmessages was drinking from a fire hose... :)
>>
>> I don't know if anyone else has mentioned this, not reading all the
>> mails, and also don't know if Handlemessage is implemented in Lazarus
>> (not being by my computer right now).
>
> Also implemented in Lazarus.
> HandleMessage waits till the next message.
>
>
> Mattias

Unfortunately in Lazarus it doesn't (wait).

-Flávio




More information about the Lazarus mailing list