Sometimes, when you browse some application source code, you find loops calling Processmessages. What’s this? Well, it is a “Message pump” which retrieves and process messages from Windows message queues. More exactly from the current thread message queues.
The code you see is frequently like this:
FSomeFlag := TRUE;
while FSomeFlag do begin
Application.ProcessMessages;
Sleep(100);
end;
↧