axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-149) Memory cleaning of generated C++ array code
Date Tue, 13 Dec 2005 04:23:45 GMT
    [ http://issues.apache.org/jira/browse/AXISCPP-149?page=comments#action_12360280 ] 

nadir amra commented on AXISCPP-149:
------------------------------------

Attempted to test on OS/400.  The first test case failed to build because:

 Definition not found for symbol 'set__Q2_7axiscpp14xsd__int_ArrayFPPiCi'. 

I tracked it down to AxisUserAPIArrays.hpp...it seems that the set() functions such as 

     void set(xsd__duration** array, const int size);

has "const" while the implementation of said functions which is defined in AxisUserAPI.cpp
does not:

    void xsd__duration_Array::set(xsd__duration** array, int size)


I see no reason for the "const" and would like to remove.  Any objections?

> Memory cleaning of generated C++ array code
> -------------------------------------------
>
>          Key: AXISCPP-149
>          URL: http://issues.apache.org/jira/browse/AXISCPP-149
>      Project: Axis-C++
>         Type: Improvement
>   Components: WSDL processing - RPC
>     Versions: 1.3 Final
>  Environment: All Platforms
>     Reporter: Samisa Abeysinghe
>     Assignee: Dushshantha Chandradasa
>      Fix For: 1.6 Alpha

>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message