EIdSocketError #10065

Giganews Newsgroups
Subject: EIdSocketError #10065
Posted by:  poojo hackma (poojo.com/mail)
Date: Wed, 5 Apr 2006

Using BCB6 w/ Indy 9.0.17

This code:
01: //-------------------------------
02: try
03: {
04:  Indy1->Connect(true);
05: }
06: catch (const EIdSocketError &eSock)
07: {
08:  MessageBox(NULL, eSock.Message.c_str(), "Debug", MB_OK);
09:  if (eSock.LastError == 10065)
10:  {
11:    // call custom RasDial method
12:    Indy1->Connect(true);
13:  }
14: }
15: catch (const Exception &ex)
16: {
17:  MessageBox(NULL, eSock.Message.c_str(), "Debug", MB_OK);
18: }

While debugging, the EIdSocketError &eSock is caught on Line 06 and goes
straight to Line 12.

What is going on???  How does that even happen?

While at Line 12, I can right-click on the eSock variable and select
"Inspect..." from the debug menu, but I get a error message saying undefined
symbol.

How do I work with this EIdSocketError?

Replies