axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <>
Subject Memory cleaning of generated C++ array code
Date Thu, 02 Sep 2004 05:12:28 GMT
Hi All,
    In case of Arrays, I noticed that the WSDL2WS tool is generating a struct.

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


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages! 

View raw message