Unable to complete login process due to delay in opening server connection from thread

16 hours ago 2
ARTICLE AD BOX

I'm working with SQL Server with ODBC Connection from C++ app.

When I just run the program - everything works.

However when I try to run thru the debugger I'm getting aforementioned errors.

The sequence is as follows::

Run the app.

Connect to the server

Start the thread that connects to the server as well.

At some point thread fails to connect when the app is interrupted by the breakpoint.

Is there a way to mitigate that and make the code always connect?

It is really annoying that during debugging the code jumps to the error reporting function from the thread.

Read Entire Article