Ver Mensaje Individual
  #1  
Antiguo 28-06-2005
jymy788 jymy788 is offline
Miembro
 
Registrado: jun 2004
Posts: 120
Reputación: 20
jymy788 Va por buen camino
EAccessViolation at address 00000000

Buenas a todos, esto es de chiste y me tiene loco.

Tengo la siguiente función:

function configureSocket(Puerto:Integer;
var ClientSocket:TClientSocket;
PcName : String;
ByIP : boolean = False): boolean;
begin
try
ClientSocket := TClientSocket.Create(nil);
If ( ByIP ) then
ClientSocket.Address := PcName
else
ClientSocket.Host:= PcName;
ClientSocket.Port:= Puerto;
ClientSocket.ClientType:= ctBlocking;
ClientSocket.Open; // si no esta activo salta al except
Result:= true;
except
Result:= false
end;
end;

pues bien, el ClienteSocket.Open, da excepción, y cuando se va al except, al hacer el Result:=false me da una excepción (EAccessViolation at address 00000000)

alguien me puede decir por qué carajo (intentando ser "fino") me está pasando esto????

Gracias a todos
Responder Con Cita