Hi,

can anybody tell me where i can deallocate allocated memory for result-values (e.g. strings or ArrayOfStrings) on server side?
Or is this done by axis itself?

Example of such a server-side method:

ArrayOfstring* ServerSideClass::getStringList()
{
   // Allocate memory:
   ArrayOfstring* resultArray = new ArrayOfstring;
   int resultArraySize = 3;
   resultArray->item.m_Array = new xsd__string[resultArraySize];
   resultArray->item.m_Size = resultArraySize;

   // Fill the resultArray:
   resultArray->item.m_Array[0] = "String1";
   resultArray->item.m_Array[1] = "String2";
   resultArray->item.m_Array[2] = "String3";
   return resultArray;

   // BUT WHERE TO DEALLOCATE THE resultArray ???
}

THANKS FOR ANY HELP!!


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

Reply via email to