|
@@ -580,12 +580,14 @@ var PropCount,i : integer;
|
|
PropList : PPropList;
|
|
PropList : PPropList;
|
|
begin
|
|
begin
|
|
PropCount:=GetPropList(Instance,PropList);
|
|
PropCount:=GetPropList(Instance,PropList);
|
|
- if PropCount>0 then begin
|
|
|
|
- for i := 0 to PropCount-1 do
|
|
|
|
- if IsStoredProp(Instance,PropList^[i]) then
|
|
|
|
- WriteProperty(Instance,PropList^[i]);
|
|
|
|
- Freemem(PropList);
|
|
|
|
- end;
|
|
|
|
|
|
+ if PropCount>0 then
|
|
|
|
+ try
|
|
|
|
+ for i := 0 to PropCount-1 do
|
|
|
|
+ if IsStoredProp(Instance,PropList^[i]) then
|
|
|
|
+ WriteProperty(Instance,PropList^[i]);
|
|
|
|
+ Finally
|
|
|
|
+ Freemem(PropList);
|
|
|
|
+ end;
|
|
Instance.DefineProperties(Self);
|
|
Instance.DefineProperties(Self);
|
|
end;
|
|
end;
|
|
|
|
|