axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjiva Weerawarana" <sanj...@opensource.lk>
Subject Re: Memory cleaning of generated C++ array code
Date Thu, 02 Sep 2004 08:40:40 GMT
+1!

Sanjiva.

----- Original Message ----- 
From: "Samisa Abeysinghe" <samisa_abeysinghe@yahoo.com>
To: "Apache AXIS C Developers List" <axis-c-dev@ws.apache.org>
Sent: Thursday, September 02, 2004 11:12 AM
Subject: Memory cleaning of generated C++ array code


> Hi All,
>     In case of Arrays, I noticed that the WSDL2WS tool is generating a
struct.
>
> e.g.
> typedef struct SOAPStruct_ArrayTag
> {
>         SOAPStruct* m_Array;
>         int m_Size;
> } SOAPStruct_Array;
>
>
> The trouble here is that in case of returned values/parameters the user
has to delete the m_Array
> mamber explicitly.
>
> I think a more cleaner way would be to use a class here and use a
destructor to clean memory.
> (I mean for C++ code)
>
> Is there any specific reason to use struct here in C++ code?
> Is it OK if I try to change this to a class?
>
> Thanks,
> Samisa...
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
>


Mime
View raw message