中国开发网: 论坛: 程序员情感CBD: 贴子 574348
haitao
好像是通过这样来释放的:居然使用了Notification
procedure TComponent.Remove(AComponent: TComponent);
begin
AComponent.FOwner := nil;
FComponents.Remove(AComponent); //这个并没有释放那个被own的控件。。。
if FComponents.Count = 0 then
begin
FComponents.Free;
FComponents := nil;
end;
end;

好像是通过这样来释放的:居然使用了Notification!!!
ValidateRename(AComponent, AComponent.FName, '');
Notification(AComponent, opRemove);

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录