getClientID segfaults is called after connection has been closed
----------------------------------------------------------------
Key: AMQCPP-119
URL: https://issues.apache.org/activemq/browse/AMQCPP-119
Project: ActiveMQ C++ Client
Issue Type: Bug
Affects Versions: 2.1
Reporter: Albert Strasheim
Assignee: Nathan Mittler
Fix For: 2.1
Calling getClientID() on a connection after it has been closed segfaults.
{code:title=main.cpp}#include <iostream>
#include <activemq/core/ActiveMQConnectionFactory.h>
#include <cms/Connection.h>
using namespace activemq::core;
using namespace cms;
int main(int argc, char* argv[]) {
ActiveMQConnectionFactory connectionFactory(
"tcp://localhost:61616?wireFormat=openwire" );
cms::Connection* connection = connectionFactory.createConnection();
connection->getClientID();
connection->close();
connection->getClientID();
delete connection;
connection = NULL;
return 0;
}{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.