Quantcast
Channel: Planet Object Pascal
Viewing all articles
Browse latest Browse all 1725

Behind the connection: What is ProcessMessages?

$
0
0
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;

Viewing all articles
Browse latest Browse all 1725

Trending Articles