I'm not trying to start an argument about proper coding. I agree, we should always release allocated resource, etc.
My question is more along the lines of what would happen if shutdownLibray() was **not** invoked when a process exits? >From the simple_producer.cpp example I see we invoke shutdownLibrary() right before the process exits. I see that it's documented as: Shutdown the ActiveMQ-CPP Library, freeing any resources that could not be freed up to this point. All the user created ActiveMQ-CPP objects and Decaf Library objects should have been destroyed by the time this method is called. Great. But what if I forgot to invoke shutdownLibrary() before the processes exited, or if the process crashed without invoking the method? Would external resource be left dangling? Thanks, -=John -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-shutdownLibrary-really-needed-tp4165716p4165716.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.