我有类型
- TNotifyReply = 类(TCollectionItem)
- TNotifyReplylist = 类(TOwnedCollection)
NotifyReplylist := TNotifyReplylist.Create(self, TNotifyReply);
调用此函数(任意次数)后,计数仍为零
function TNotifyReplylist.addItem: TNotifyReply;
begin
Result := inherited Add as TNotifyReply;
OutputDebugString(PAnsiChar('Count > '+ inttostr(count)));
end;
知道这里发生了什么吗?