Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 4859 invoked from network); 16 Jan 2006 16:21:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jan 2006 16:21:23 -0000 Received: (qmail 62467 invoked by uid 500); 16 Jan 2006 16:21:23 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 62452 invoked by uid 500); 16 Jan 2006 16:21:23 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 62441 invoked by uid 99); 16 Jan 2006 16:21:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 08:21:22 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.179.93] (HELO web35214.mail.mud.yahoo.com) (66.163.179.93) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 16 Jan 2006 08:21:22 -0800 Received: (qmail 69617 invoked by uid 60001); 16 Jan 2006 16:21:01 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=55D1mQODhT7+t/lAj5f/yZBqxSLLxJs9y48NBV5agI6q8bNJvcfvcu9heQc+NhUxYnduDFRrUZ37SX6pW4zycs4WB2EYmjVuKEzsW0/m1HKklOLsl0LwQu0rByZjCFYrr7uSWBwNZYnMnyOQzcFoawGv0PRwpHB6kdShTR/8+30= ; Message-ID: <20060116162101.69615.qmail@web35214.mail.mud.yahoo.com> Received: from [221.115.92.21] by web35214.mail.mud.yahoo.com via HTTP; Mon, 16 Jan 2006 08:21:01 PST Date: Mon, 16 Jan 2006 08:21:01 -0800 (PST) From: Guilhem Tardy Subject: memory alloc/free across DLL boudaries To: axis-c-user@ws.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I am copying part of my previous email into this new thread, because it seems a problem shared by many (according to the mailing list archive) and IMHO quite serious. Deleting objects across DLL causes exception, in particular from the "simple" (Calculator) sample: xsd__int Calculator::div(xsd__int Value0, xsd__int Value1) ... xsd__int r = *Ret; // delete Ret; return r; } Another service (ref) completely fails due apparently to the same problem, and I am incapable to find an easy way to solve it. Granted that eventually my goal is to get all the client SOAP functionality into one static library, which may solve the above issue if there were any easy way to do that. Unfortunately, unlike Xerces (built DLL and static in matter of minutes), Axis CPP shows no such easy way of making static libraries. As a matter of fact, in several days of debugging the standard "DLL" build system, I have come across several calls to openLib that mean usage of DLL is hardcoded into Axis CPP. I would love to hear anyone prove me wrong. Please? Guilhem. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com