axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <>
Subject [jira] Commented: (AXISCPP-149) Memory cleaning of generated C++ array code
Date Tue, 13 Dec 2005 04:23:45 GMT
    [ ] 

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 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:
>      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:
For more information on JIRA, see:

View raw message