Congratulations! You have run square into our biggest headache. You will find that these agents are not exiting cleanly or are waiting for information or the odbc queue. You'll need to figure out the cause (either not terminating cleanly or still waiting for data) and write code to work around this and free up the thread. Don't be fooled. Just because your query has come back with the data does not mean that the odbc queue has released the process and thread. Also beware of embedded images that are using Domino's conversion to gif or jpeg. Many times the conversion program does not ever complete keeping the thread open even though the image appears to have rendered. Sometimes this image problem will cause the threads to hang and you may be thinking, is it my Web query save? Just a thought.
This was first published in July 2002