我有这些类型的
class(TCollectionItem)
=
NotifyReplylist := TNotifyReplylist.Create(self,TNotifyReply);
调用此函数(任意次数)后,仍将其计数为零。
function TNotifyReplylist.addItem: TNotifyReply;
begin
Result := inherited Add as TNotifyReply;
OutputDebugString(PAnsiChar('Count > '+ inttostr(count)));
end;你知道这是怎么回事吗?
发布于 2010-08-09 06:18:13
发现问题时,TNotifyReply.Create是
constructor TNotifyReply.Create(ACollection: TCollection);
begin
inherited Create(Collection);
....变到
inherited Create(ACollection);https://stackoverflow.com/questions/3437567
复制相似问题