I am using D5 and Synaps with OpenSSL and it is working great. I am trying to handle crashes so have deliberately entered bad data, one try at a time. So far I have handled the induced crashes OK, but I just changed the login Password and tried to login.
gMajorFail:=False;
if not pop3.Login() then
begin
gMajorFail:=True;
raise EPOP3.Create('POP3 ERROR: '+IntToStr(pop3.Sock.LastError)+
' When trying to Login to Account');
end;
if gMajorFail then GoTo HadFailure;
Instead of jumping to the HadFailure-Label, it jumps to the last line of code in the procedure.
I have tried using Try/Finally (that's why I am using the Label to GoTo) but it still skips right to the last line of code.
Where am I going wrong and how can I fix it?
Thanks