On Sunday 06 December 2009 17:38:54 Timothy Bish wrote: > The method Thread::currentThread won't work after a call to the shutdown > method for the library, which is why its important to clean up your > ActiveMQ-CPP resources for calling it.
I meant that in multi-threading application where a thread that is not controlled my activemq-cpp tries to close a session, the Thread::currentThread throws because the thread never had a currentThread in the first place. I tried just to remove the throw and return null pointer and everything appears to work fine. Why not check the thread ids instead of thread structures in shutdown? Teemu
