I'm using a TClientSocket component. When I do a connect to an internet address (not ip), but I'm not connected to the internet I get an ESocketEror resulting in the following message: "Windows socket error: (11001), on API 'Async Lookup'.I'm trying to catch this ESocketError. But I can't!
I know there is an OnError event and I have a handler for it. I know this Error handler is working because occassionaly it's called.
I've tried many things like
try
{
Socket->Open();
}
catch(ESocketError &e)
{
Error("Could not open socket!"
}
but they did not work
Can anybody help me resolve this problem?
I know there is an OnError event and I have a handler for it. I know this Error handler is working because occassionaly it's called.
I've tried many things like
try
{
Socket->Open();
}
catch(ESocketError &e)
{
Error("Could not open socket!"
}
but they did not work
Can anybody help me resolve this problem?