[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-c-user
Subject:    Re: [AXIS2C] memory management
From:       "Dr. Florian Steinborn" <florian.steinborn () drb ! insel ! de>
Date:       2007-06-19 10:43:23
Message-ID: op.tt5z2lsf3mtm40 () fspc ! drb ! insel ! de
[Download RAW message or body]

Hi Samisa,


>>
>> 3. Do I understand correctly, nobody else frees the memory if not the  
>> user does it? Cannot imagine that - all the generated services would be  
>> giantic memory holes...
> The model is that the user got to free it. The notion of "user got to  
> free it" makes sense, as the user has control over the lifetime of the  
> struct instance.

I think we had a misunderstanding. Of course the user has to free the  
memory that he allocates.
I had a deeper look into the generated free-functions and see that the  
axis2_skel_<servicename>_getString method is called in the "invoke" part  
and the memory is freed by the automatic call of  axis2_getString_free().  
If there is additional memory allocated by the user he has to free it  
himself.
I see.
Thanks,

Flori


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic