Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 38022 invoked from network); 23 Aug 2006 07:44:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2006 07:44:48 -0000 Received: (qmail 57317 invoked by uid 500); 23 Aug 2006 07:44:47 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 57158 invoked by uid 500); 23 Aug 2006 07:44:47 -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 57146 invoked by uid 99); 23 Aug 2006 07:44:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 00:44:47 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.169.145.181] (HELO natblert.rzone.de) (81.169.145.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 00:44:46 -0700 Received: from RH1 (Q65ee.q.strato-dslnet.de [89.53.101.238]) by post.webmailer.de (8.13.6/8.13.6) with SMTP id k7N7iMZb005945 for ; Wed, 23 Aug 2006 09:44:24 +0200 (MEST) Message-ID: <006401c6c687$f4f9bd10$18b2a8c0@RH1> From: To: "Apache AXIS C User List" Subject: Where to deallocate memory for server-sided return values? Date: Wed, 23 Aug 2006 09:44:25 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, can anybody tell me where i can deallocate allocated memory for result-values (e.g. strings or ArrayOfStrings) on server side? Or is this done by axis itself? Example of such a server-side method: ArrayOfstring* ServerSideClass::getStringList() { // Allocate memory: ArrayOfstring* resultArray = new ArrayOfstring; int resultArraySize = 3; resultArray->item.m_Array = new xsd__string[resultArraySize]; resultArray->item.m_Size = resultArraySize; // Fill the resultArray: resultArray->item.m_Array[0] = "String1"; resultArray->item.m_Array[1] = "String2"; resultArray->item.m_Array[2] = "String3"; return resultArray; // BUT WHERE TO DEALLOCATE THE resultArray ??? } THANKS FOR ANY HELP!! --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org