Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 11008 invoked from network); 2 Nov 2010 19:10:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 19:10:50 -0000 Received: (qmail 67642 invoked by uid 500); 2 Nov 2010 19:11:21 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 67618 invoked by uid 500); 2 Nov 2010 19:11:21 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 67608 invoked by uid 99); 2 Nov 2010 19:11:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:11:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 19:11:20 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA2JB0oQ002507 for ; Tue, 2 Nov 2010 19:11:00 GMT Message-ID: <18951496.4751288725060578.JavaMail.jira@thor> Date: Tue, 2 Nov 2010 15:11:00 -0400 (EDT) From: "Brian McKinnon (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQCPP-326) Returning std::string across a dll boundary in getTopicName causes crash In-Reply-To: <10674850.4681288723740050.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQCPP-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62969#action_62969 ] Brian McKinnon commented on AMQCPP-326: --------------------------------------- This issue is actually much larger than I originally thought. It may be easier for me to stop the C4 memory manager than to make all the changes to activemq-cpp to ensure that the library is safe across memory managers. You can choose to ignore this request... unless you are interested in me spending more time to try and resolve this issue. > Returning std::string across a dll boundary in getTopicName causes crash > ------------------------------------------------------------------------ > > Key: AMQCPP-326 > URL: https://issues.apache.org/activemq/browse/AMQCPP-326 > Project: ActiveMQ C++ Client > Issue Type: Improvement > Components: CMS Impl > Affects Versions: 3.2.3 > Environment: Visual studio 2010/2008 working with the C4 game engine > Reporter: Brian McKinnon > Assignee: Timothy Bish > Priority: Minor > Attachments: getTopicNameIntoReference.patch > > > The C4 game engine has recently implemented there own memory management module overloading the new and delete operations. As a result the std::string returned by cms::Topic::getTopicName causes the system to crash. The custom memory manager renders the simple solution of including the same msvc runtime dll unusable. A solution would be to implement a void cms::Topic::getTopicName(std::string & name) function instead or in addition to the existing function. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.