[Lazarus] Sending messages
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Fri Nov 25 14:40:20 CET 2011
Michael Schnell schrieb:
> On 11/25/2011 10:35 AM, Hans-Peter Diettrich wrote:
>>
>> Does a SendMessage call bypass any other messages which have been
>> queued until that time? (by dispatching the message immediately to the
>> target?)
> AFAIK, Yes. (i.e. in non-Windows LCLWidgetType implementations that
> provide their own queues, SendMessage() and the main thread loop taking
> an Event from the queue (can) result in the same function call to
> Dispatch.)
Another reason: what when the event handler sends another message, e.g.
for reading or writing a property? Queuing the new message would result
in an deadlock.
DoDi
More information about the Lazarus
mailing list