activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Pechorin <ivan.pecho...@gmail.com>
Subject Re: ActiveMQ-CPP 3.4.2 memory leaks?
Date Fri, 18 May 2012 14:36:11 GMT
2012/5/14 <richard_mancusi@hotmail.com>

>
> I'm wondering whether or not you've been able to find out anything using
> BoundsChecker or when you might have time to test it?  I have access to
> another tool which is not as good as what you have; it will probably take
> me a couple of days before I have something I'm comfortable sharing .
>
> Let me know if there are any questions.
>

I've built version 3.4.2, configuration "ReleaseDLL", platform "Win32",
using Visual Studio 2008 with SP1 and all updates/hotfixes up to date
(v9.0.30729.1 SP)
Just two projects: activemq-cpp (the library) and activemq-cpp-example.

I had to change projects' configuration in two places:
1) in both of these projects, in section General -> Character set --
changed from Unicode to "Not set"  (first of all, we never use Unicode
builds except for some rare cases where it is really necessary; second,
version 3.4.2 just doesn't compile with Unicode defined: 3 compilation
errors in src\main\decaf\lang\System.cpp)
2) in activemq-cpp-example for configuration "ReleaseDLL" I had to change
Linker -> Input -> Additional dependencies to "activemq-cpp.lib" (the
original list of dependencies was plain wrong) and in Linker -> General ->
Additional Library Directories I had to
put $(SolutionDir)$(PlatformName)\$(ConfigurationName) - that's the
directory where activemq-cpp.lib is stored.

No changes to source code of the example or the library.

I've run activemq-cpp-example against activemq-5.6.0 broker (just fresh
broker downloaded from apache web site, nothing configured at all, just
extracted from zip).

DevPartner Error Detection (that's the current name of the product
previously known as BoundsChecker) didn't find any memory leaks at
all. There was a one-time resource leak: some library was loaded with
LoadLibrary() in apr, and it was not unloaded on application exit. That's
not an issue, in my opinion.

OS: Windows 2008 R2 Standard (64-bit).

Any ideas?
Maybe some other configuration, or some changes to the example?


Regards,
Ivan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message