RtcHttpClient1在程序关闭时没有断开会出现上述的Runtime error 216的问题

解决方法在主窗口中的OnClose中执行客户端断开

procedure TFormMain.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  if RtcHttpClient1.isConnected then
    RtcHttpClient1.Disconnect;
end;

相关文章: