Vasile PAIS wrote:
Hi Michael, I encountered the same problem some time ago and I solved it by dynamically allocating the memory for the string variable, inside the function: char *s=(char*)malloc(SIZE+1); // Don't forget to add +1 for the final \0 character strcpy(s,"STRING"); I think this happens because the "...._set_return" will just copy the pointer address, which is no longer available when you exit the function. Hope this helps,
Should we fix the code to make a deep copy inside ...._set_retun function in generated code? I feel that we should. Thoughts please...

Samisa...

--
Samisa Abeysinghe - Apche Axis2/C
"http://ws.apache.org/axis2/c/?Apache Axis2/C The Web Services Engine";


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to