activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Gheorghe (JIRA)" <>
Subject [jira] [Created] (AMQCPP-494) Commiting a session with a deleted consumer causes access violation
Date Wed, 19 Jun 2013 14:03:20 GMT
Andrei Gheorghe created AMQCPP-494:

             Summary: Commiting a session with a deleted consumer causes access violation
                 Key: AMQCPP-494
             Project: ActiveMQ C++ Client
          Issue Type: Bug
    Affects Versions: 3.7.0
            Reporter: Andrei Gheorghe
            Assignee: Timothy Bish
            Priority: Minor

I'm not sure if this is a bug or if I'm using the library wrong.
The following program will cause an access violation error when trying to commit the session.

#include <activemq/core/ActiveMQConnectionFactory.h>
#include <activemq/commands/ActiveMQQueue.h>
#include <activemq/library/ActiveMQCPP.h>

int main()

	activemq::core::ActiveMQConnectionFactory factory("tcp://localhost:61616");
	activemq::commands::ActiveMQQueue queue("testqueue");

	cms::Connection* connection = factory.createConnection();
	cms::Session* session = connection->createSession(cms::Session::SESSION_TRANSACTED);
	cms::MessageConsumer* consumer = session->createConsumer(&queue);

	delete consumer;


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message