|
@@ -39,7 +39,9 @@ end;
|
|
|
|
|
|
procedure TFresnelLCLApplication.OnLCLQueue(Data: PtrInt);
|
|
|
begin
|
|
|
- LCLQueued:=false;
|
|
|
+ EnterCriticalSection(FCritSecQueue);
|
|
|
+ FLCLQueued:=false;
|
|
|
+ LeaveCriticalSection(FCritSecQueue);
|
|
|
if Data=0 then ;
|
|
|
ProcessMessages;
|
|
|
end;
|
|
@@ -50,13 +52,13 @@ begin
|
|
|
try
|
|
|
if FLCLQueued=AValue then Exit;
|
|
|
FLCLQueued:=AValue;
|
|
|
- if AValue then
|
|
|
- Forms.Application.QueueAsyncCall(@OnLCLQueue,0)
|
|
|
- else
|
|
|
- Forms.Application.RemoveAsyncCalls(Self);
|
|
|
finally
|
|
|
LeaveCriticalSection(FCritSecQueue);
|
|
|
end;
|
|
|
+ if AValue then
|
|
|
+ Forms.Application.QueueAsyncCall(@OnLCLQueue,0)
|
|
|
+ else
|
|
|
+ Forms.Application.RemoveAsyncCalls(Self);
|
|
|
end;
|
|
|
|
|
|
constructor TFresnelLCLApplication.Create(AOwner: TComponent);
|