LCL: in LCLMessageGlue.DeliverMessage, include the test "if Target is TLCLComponent" inside a try-except block.

git-svn-id: trunk@33547 -
This commit is contained in:
juha 2011-11-15 23:49:50 +00:00
parent 89748aa75c
commit fe125ef691

View File

@ -101,12 +101,12 @@ begin
{$ENDIF}
RefCounted := False;
try
if Target is TLCLComponent then
begin
TLCLComponent(Target).IncLCLRefCount;
RefCounted := True;
end;
try
if Target is TLCLComponent then
begin
TLCLComponent(Target).IncLCLRefCount;
RefCounted := True;
end;
if Target is TControl then
TControl(Target).WindowProc(TLMessage(AMessage))
else