[英]Delphi tethering PairedManagers out of range
Delphi 10.2.3 德尔福10.2.3
procedure TMainForm.FormDestroy(Sender: TObject);
var i: Integer;
begin
try
CodeSite.Send('In FormDestroy, MyTetheringAppProfile.Disconnect() has ' + IntToStr(MyTetheringManager.RemoteProfiles.Count) + ' profiles.');
for i:= MyTetheringManager.PairedManagers.Count-1 downto 0 do
MyTetheringManager.UnPairManager(MyTetheringManager.PairedManagers[i]);
UnPairManager() throws a range exception error. UnPairManager()引发范围异常错误。
I don't see how that is possible as there is only one manager. 我不知道怎么可能,因为只有一位经理。 i=0 and MyTetheringManager.PairedManagers.Count=1 when tracing into the code.
跟踪代码时,i = 0和MyTetheringManager.PairedManagers.Count = 1。
How is it possible for this to be out of range? 这怎么可能超出范围?
将两个应用程序都连接到相同的Codesite之后,可以看到在客户端的FormDestroy代码期间,网络共享的“服务器”端断开了连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.