Indy version: 10.5.8.0 Sometimes program cant disconnect, there is a socket error (i guess there was a problem with server or internet connection) after that is not possible to connect again, app needs to be rebooted. Thanks for help.
procedure TForm1.Button1Click(Sender: TObject);
begin
try
IdIRC1.Connect;
if IdIRC1.Connected then
IdIRC1.Join('#' + Edit3.Text);
except
end;
end;
procedure TForm1.IdIRC1Connected(Sender: TObject);
begin
IdIRC1.IOHandler.DefStringEncoding := IndyUTF8Encoding;
end;
procedure TForm1.Button7Click(Sender: TObject);
begin
IdIRC1.Disconnect();
end;