I keep a pool of Advantage TAdsConnection objects and hand them out as requested. Occasionally I get one passed out that results in a 6610 error, I’m assuming because it sat idle and the connection got reset. I could just run any old query and catch the 6610, but it’s a long wait for that particular error.
Is there a good way to check the health of an advantage connection before I pass it back out?
You can use the AdsIsConnectionAlive ACE API to test a connection. This API will send a small ‘echo’ packet to the server to test if the connection is alive and well.