activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Urberg (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQCPP-167) Client has memory leaks when used in an MFC application
Date Mon, 11 Feb 2008 14:18:35 GMT
Client has memory leaks when used in an MFC application
-------------------------------------------------------

                 Key: AMQCPP-167
                 URL: https://issues.apache.org/activemq/browse/AMQCPP-167
             Project: ActiveMQ C++ Client
          Issue Type: Bug
          Components: CMS Impl
    Affects Versions: 2.1.3
         Environment: Visual Studio 2008, Windows XP Pro SP2
            Reporter: John Urberg
            Assignee: Nathan Mittler
         Attachments: memory-dump.txt, mvc-example.cpp, stdafx.h

I'm building an MFC application that uses the ActiveMQ CMS to communicate with an ActiveMQ
server.  When I first introduced MFC into my project, I started getting "Detected memory leaks!"
showing up in my output when debugging.  To verify this was due to ActiveMQ, I created a separate
MFC console application and copied the code from the vs2005-activemq-example project into
it and the memory leaks continued.  Running the example (non MFC) program that comes with
the ActiveMQ distribution does not produce the memory leaks.

To reproduce:
1) Create an MFC console application project
2) Copy the code from the vs2005-activemq-example main.cpp into the new application file (see
attached example)
3) Modify stdafx.h to include debugging includes (example attached)

You will see a memory dump similar to the one in the attached file when you run the program.

-- 
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