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] Commented: (AMQCPP-118) Provide a way to allocate and free with the same allocator
Date Wed, 30 May 2007 15:24:32 GMT

    [ https://issues.apache.org/activemq/browse/AMQCPP-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39188
] 

Albert Strasheim commented on AMQCPP-118:
-----------------------------------------

As expected, linking the AMQCPP example program against the multithreaded static runtime and
the AMQCPP DLL gives you the following error dialog when running the Debug build:

{noformat}
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!

Program: ...
File: dbgheap.c
Line: 1279

Expression: _CrtIsValidHeapPointer(pUserData)

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)
---------------------------
Abort   Retry   Ignore   
---------------------------
{noformat}

> Provide a way to allocate and free with the same allocator
> ----------------------------------------------------------
>
>                 Key: AMQCPP-118
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-118
>             Project: ActiveMQ C++ Client
>          Issue Type: Improvement
>            Reporter: Albert Strasheim
>            Assignee: Nathan Mittler
>             Fix For: 2.1
>
>
> Cross-runtime allocation and deallocation can cause problems on Windows (and maybe other
platforms) where you can have code linked against more than one runtime in the same program.
There should be a way to be sure that you allocate and deallocate AMQCPP objects using code
linked against the same runtime (i.e. allocate and deallocate from the same heap).
> More details in this thread:
> [http://www.nabble.com/Licensing-and-Porting-Issue-for-the-CMS-(ActiveMQ-CPP)-on-Visual-Studio-6-from-Visual-Studio-8-t3777279s2354.html]
> and here:
> http://blogs.msdn.com/oldnewthing/archive/2006/09/15/755966.aspx

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