On Wed, 2011-11-16 at 13:30 -0800, mrdiesel wrote:
> I m getting the same segmentation fault error.
> 
> I moved the init and shutdown statements outside the for loop.
> 
> 0test
> 1test
> 2test
> 3test
> Segmentation fault (core dumped)
> 

There are several good examples in the unit and integration tests you
can look at.  You haven't indicated what compiler and OS you are using
or what version of the lib so I can't speak to any know issues.  You
also appear to have a memory leak in the runConsumer method since you
aren't deleting the message pointer that receive returns.  

> is there a sample, synchronous c++ client i can look? I m really not getting
> why this is happening? 
> 
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/The-Decaf-Threading-API-is-in-a-Shutdown-State-Exception-tp4077689p4077949.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Reply via email to