I was wondering if a leaked message handle will occur if I shut down a thread from a TPS Tclproc before I return the message with a disposition.
My goal is to stop message processing when an ODBC database connection cannot be made and then continue when its available again.
I’m doing this currently by shutting down the thread when the connection fails. A cron script runs every few minutes to check the ODBC connection, if the connection is availalbe and the thread is down, it restarts the thread.
I’m wondering if my method could cause leaked message handles since I’m not returning the current message with a disposition before shutting down the thread.
Also, maybe there’s a more elegant way of doing this that someone could share.
Any thoughts?
Troy