[fpc-devel] Inconsistent use of Timeout in SimpleIPC
mschnell at lumino.de
Mon Dec 7 09:49:12 CET 2015
On 12/06/2015 03:03 AM, Denis Kozlov wrote:
> The only way to make TSimpleIPCServer.PeekMessage respect
> DoReadMessage=False parameter is to store locally all sent data
> streams ....
TThread does contain a queue for "TThread.Synchronize" and
"TThread.Queue". It is decently managed for the main thread and polled
by "checksynchronize()" with automatically is used by "event
programming" environments such as Lazarus or mse ide.
Perhaps it would make sens to (optionally) forward the messages there
that weirdly are pre-fetched by Windows.
In fact it might be useful to optionally allow to forward all received
events (as properly formatted event functions) in that queue and so to
use checksynchronize() and with that the Lazarus and mse ide to receive
messages from other applications in a way compatible to the "event
programming" paradigm .
More information about the fpc-devel