TScSSHClient.Connect WSAGetLastError overwritten to 0
Posted: Tue 08 Nov 2011 12:47
Hi,
Just noticed if i receive an exception in
MyClient.Connect()
int prints the WSAGetLastError number into the exception message. Calling WSAGetLastError inside the exceptionblock however returns 0. It seems that it has been overwritten within the Connect function.
i would prefer to use WSAGetLastError for receiving detailed info at runtime for my own exception handling.
Greetings
Memnarch
Just noticed if i receive an exception in
MyClient.Connect()
int prints the WSAGetLastError number into the exception message. Calling WSAGetLastError inside the exceptionblock however returns 0. It seems that it has been overwritten within the Connect function.
i would prefer to use WSAGetLastError for receiving detailed info at runtime for my own exception handling.
Greetings
Memnarch