Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 770E0C8FC for ; Fri, 18 May 2012 14:36:39 +0000 (UTC) Received: (qmail 18215 invoked by uid 500); 18 May 2012 14:36:39 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 18184 invoked by uid 500); 18 May 2012 14:36:39 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 18175 invoked by uid 99); 18 May 2012 14:36:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 14:36:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ivan.pechorin@gmail.com designates 209.85.220.171 as permitted sender) Received: from [209.85.220.171] (HELO mail-vc0-f171.google.com) (209.85.220.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 14:36:32 +0000 Received: by vcbgb30 with SMTP id gb30so448163vcb.2 for ; Fri, 18 May 2012 07:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UTMT9HapNyQky+ngeXrjWIvGRub8O0E+nyBZx8D13Gc=; b=VsAZ08V2acg80TG+X3N+E2S23XXR+eyydZYfHDAiaY5QDQxztXBDhAXCN1cIpCApr7 V9b0LZskbPRsVDukcSlZMRYBxG+3qndWuZsfhGJ6HS1scUt3R5gpmcHKHaha0rL1Y4M7 Btm1w7r08JyLIJZ3zoC1N+m2jup+jH3vN0HNt3Kd8QZU76z5ZVmWOhgbSNfroyzDts5o SlQitvpDXmeNZX7gQgZCTkcGVmesvq9NxdfJ8m47Pi5OK7C6eStQoC8YxdwdxdBkzAPZ 0GSQ0vOTLq3PrpU88XkTzJkJ84qJAJn88UTU9tjxworkpcR5/XtG2NGCqhR64NYqBiJb rosQ== MIME-Version: 1.0 Received: by 10.52.26.232 with SMTP id o8mr5574137vdg.64.1337351771482; Fri, 18 May 2012 07:36:11 -0700 (PDT) Received: by 10.52.34.177 with HTTP; Fri, 18 May 2012 07:36:11 -0700 (PDT) In-Reply-To: <19997891.50731.1337023301386.JavaMail.nabble@joe.nabble.com> References: <19997891.50731.1337023301386.JavaMail.nabble@joe.nabble.com> Date: Fri, 18 May 2012 18:36:11 +0400 Message-ID: Subject: Re: ActiveMQ-CPP 3.4.2 memory leaks? From: Ivan Pechorin To: users@activemq.apache.org, richard_mancusi@hotmail.com Content-Type: multipart/alternative; boundary=20cf307813004768ab04c05079ae X-Virus-Checked: Checked by ClamAV on apache.org --20cf307813004768ab04c05079ae Content-Type: text/plain; charset=ISO-8859-1 2012/5/14 > > 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 --20cf307813004768ab04c05079ae--