bug in current indy 10/delphi6

bug in current indy 10/delphi6

Post by Ben Taylo » Sat, 10 Jan 2004 18:40:14


hi,

using the latest nightly build of indy10, compiled with delphi6 update1.

unit IdIOHandlerStack;

procedure TIdConnectThread.Execute;
begin
try
try
FBinding.Connect;
except on E: EIdSocketError do
if (E.LastError<>Id_WSAEBADF) and (E.LastError<>Id_WSAENOTSOCK)
then begin
raise; {E;} //remove this E; to fix
end;
end;
except on
E: Exception do begin
FExceptionMessage := E.Message; //EInvalidPointer here
end;
end;
// Necessary as caller checks this
Terminate;
end;

Attempting a TIdTCPClient.Connect when there is no network connection
(eg unplug the network cable) an EInvalidPointer exception is raised on
the above line. removing the 'E;' on the preceding Raise resolves this.

thanks,
Ben
 
 
 

bug in current indy 10/delphi6

Post by jim » Sat, 10 Jan 2004 18:45:04


Ben,


Shouldn't you be running the latest update pack for Delphi? ie Update 2.

Jim

 
 
 

bug in current indy 10/delphi6

Post by Ben Taylo » Sun, 11 Jan 2004 06:10:14


hi :-)

my mistake, i am using update2. was thinking about d7..