Re: ActiveMq-CPP question

2015-08-28 Thread spamtrap
On Thu, 27 Aug 2015 10:31:56 -0400, Timothy Bish tabish...@gmail.com wrote: On 08/27/2015 04:40 AM, spamtrap wrote: When I call the cms:Message acknowledge() method I get the message Pointer operator- - Pointee is NULL. printed to stdout/err. How can I avoid this? There isn't enough info

Re: ActiveMq-CPP question

2015-08-27 Thread Timothy Bish
On 08/27/2015 04:40 AM, spamtrap wrote: When I call the cms:Message acknowledge() method I get the message Pointer operator- - Pointee is NULL. printed to stdout/err. How can I avoid this? There isn't enough info here to make a guess, usually some sample code can make it more obvious what

ActiveMq-CPP question

2015-08-27 Thread spamtrap
When I call the cms:Message acknowledge() method I get the message Pointer operator- - Pointee is NULL. printed to stdout/err. How can I avoid this?

Re: ActiveMQ-CPP question

2012-08-28 Thread spam trap
On Fri, 24 Aug 2012 09:24:38 -0400, Timothy Bish tabish...@gmail.com wrote: On Fri, 2012-08-24 at 14:15 +0100, spam trap wrote: Hi, I am using ActiveMQ-CPP to consume messages asynchronously. In my onMessage() method can I refer to the cms::Message object directly? All the examples show

ActiveMQ-CPP question

2012-08-24 Thread spam trap
Hi, I am using ActiveMQ-CPP to consume messages asynchronously. In my onMessage() method can I refer to the cms::Message object directly? All the examples show this being casted to another type (eg. BytesMessage). Some messages may not have payloads so I am not sure what exact type to use for

Re: ActiveMQ-CPP question

2012-08-24 Thread Timothy Bish
On Fri, 2012-08-24 at 14:15 +0100, spam trap wrote: Hi, I am using ActiveMQ-CPP to consume messages asynchronously. In my onMessage() method can I refer to the cms::Message object directly? All the examples show this being casted to another type (eg. BytesMessage). Some messages may

Re: ActiveMQ CPP question -- crashing in destructor

2011-09-22 Thread spam trap
On Thu, 22 Sep 2011 08:02:47 +0700, Ivan Pechorin ivan.pecho...@gmail.com wrote: The reason is that the ActiveMQConsumer object is crashing during its destruction. Stack traces and sample code that reproduces the issue are needed before any help here, this could result from a number of

Re: ActiveMQ CPP question -- crashing in destructor

2011-09-22 Thread Ivan Pechorin
Just to make sure I am getting things right I do the following in the cleanup:  delete destination;  consumer.stop();  session.stop();  consumer.close();  delete consumer;  delete session; Is this the correct order? Yes, it looks correct.

Re: ActiveMQ CPP question -- crashing in destructor

2011-09-21 Thread Timothy Bish
On Wed, 2011-09-21 at 12:17 +0100, spam trap wrote: I am writing a C++ application using the ActiveMQ CPP API. I have based my code on the example in http://activemq.apache.org/cms/example.html However I have moved the creation of the Session, Destination and Consumer objects of the

Re: ActiveMQ CPP question -- crashing in destructor

2011-09-21 Thread spam trap
On Wed, 21 Sep 2011 08:23:40 -0400, Timothy Bish tabish...@gmail.com wrote: On Wed, 2011-09-21 at 12:17 +0100, spam trap wrote: I am writing a C++ application using the ActiveMQ CPP API. I have based my code on the example in http://activemq.apache.org/cms/example.html However I have moved

Re: ActiveMQ CPP question -- crashing in destructor

2011-09-21 Thread Ivan Pechorin
The reason is that the ActiveMQConsumer object is crashing during its destruction. Stack traces and sample code that reproduces the issue are needed before any help here, this could result from a number of different scenarios. I am in the process of creating a standalone example that exhibits