activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Strasheim (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQCPP-119) getClientID segfaults is called after connection has been closed
Date Sat, 02 Jun 2007 20:45:32 GMT
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.


Mime
View raw message