var all: TThreadList = nil;
procedure TForm1.IdTCPServer1Connect(AContext: TIdContext);
var list:tlist;
begin
try
list := all.LockList;
try
list.Add(0);
finally
all.UnlockList;
end;
except
end;
end;
远程登录 127.0.0.1 1234
为什么会出现访问冲突?