You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "John Urberg (JIRA)" <ji...@apache.org> on 2008/02/11 15:18:35 UTC

[jira] Created: (AMQCPP-167) Client has memory leaks when used in an MFC application

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.


[jira] Updated: (AMQCPP-167) Client has memory leaks when used in an MFC application

Posted by "Nathan Mittler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Mittler updated AMQCPP-167:
----------------------------------

    Fix Version/s: 2.2

> 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
>             Fix For: 2.2
>
>         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.


[jira] Closed: (AMQCPP-167) Client has memory leaks when used in an MFC application

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish closed AMQCPP-167.
-------------------------------

    Resolution: Duplicate

This is a dup of AMQCPP-173

> 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
>             Fix For: 2.2
>
>         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.