IDE: Allow Tcomponent.ValidateContainer raise an exception at design time. Issue #34445, patch from errno.

git-svn-id: trunk@59361 -
This commit is contained in:
juha 2018-10-26 22:33:22 +00:00
parent 4dde2e198f
commit 07161323f3

View File

@ -1312,7 +1312,12 @@ begin
DebugLn(['TCustomFormEditor.CreateComponent Inline ',DbgSName(TypeClass)]);
SetComponentInlineMode(NewComponent,true);
end;
NewComponent.Create(OwnerComponent);
try
NewComponent.Create(OwnerComponent);
except
NewComponent:=nil;
raise;
end;
except
on e: Exception do begin
DumpExceptionBackTrace;