Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : IRC Component and Indy 9
| Subject: | IRC Component and Indy 9 |
| Posted by: | "Danila Vershinin" (profyprepatyandexdotru) |
| Date: | Fri, 19 May 2006 20:26:44 |
Hello everyone,
I am trying to port IRC component written on top of Indy 8 to make it work
under Indy 9. (I've attached component's source files in
public.attachments. )
I have problems regarding component's TIdTCPClient field. Back to Indy 8,
TIdTCPClient had TIdSocksInfo, so in the code I have the following:
function TXiRC.GetSocksInfo : TSocksInfo;
begin
result := FSocket.SocksInfo;
end;
In Indy 9 I can not do that. I have to: result := FSocket.Socket.SocksInfo;
which makes Delphi AV when adding the component onto the form.
Almost the same situation with this:
procedure TXiRC.SetSocksInfo(AValue : TSocksInfo);
begin
if FSocket = nil then Exit else
FSocket.SocksInfo := AValue;
end;
do I have to write "if FSocket.Socket = nil" or smth different? and what
happened to InterceptEnabled property in Indy9?
The original component compiles fine under C++ Builder 6 (Indy 8)