[Lazarus] Lazarus application crash. Is PostMessage thread safe?

zeljko zeljko at holobit.net
Wed Feb 10 13:48:22 CET 2016


On 02/10/2016 12:48 PM, Giuliano Colla wrote:
> Il 10/02/2016 12:31, zeljko ha scritto:
>> On 02/10/2016 11:19 AM, Giuliano Colla wrote:
>>
>>> This I believe to be the problem. From the observations from Denis I
>>> realized that my code isn't protected against recursion, but I believe
>>> that Application.ProcessMessages should protect itself too, avoiding to
>>> handle more than once the same message.
>>
>> But where ? In LCL or per widgetset ?
>>
>
> I don't know. I did look into the code a long time ago, and I seem to
> remember that the main loop is handled differently: some widgetsets do
> rely on LCL, some on their main loop. I was hoping that someone more
> knowledgeable than me would say "oh yes, the right spot is just here!".
> If such is not the case, I'll try, as soon as I have some time (which I
> don't have at the moment), to look again into the matter, and possibly
> suggest a patch.

Qt relies on LCL main loop.

zeljko





More information about the Lazarus mailing list