Destroying complex xsd__ types allocated by the client proxy
------------------------------------------------------------
Key: AXISCPP-1042
URL: https://issues.apache.org/jira/browse/AXISCPP-1042
Project: Axis-C++
Issue Type: Bug
Components: Client - Engine
Affects Versions: 1.6 Final
Environment: MS Windows XP MSVC 8.0 different runtime for client
application and AxisClient.dll
Reporter: Michail Ushakov
We have deallocation problem with xsd__...array * types returned from axis
engine under VC 8.0. Since our client and axis uses different runtime libraries.
My proposal:
make all complex types allocated and returned by axis engine with own memory
allocation/deallocation operators.
////////////////////////////////////////////////////////
// AxisUserApi.hpp
/**
* @class xsd__base
* Axis C++ base type for xml types
* defines own allocation deallocation mechanism
*/
class STORAGE_CLASS_INFO xsd__base {
public:
/**
* Default constructor
*/
xsd__base();
virtual ~xsd__base();
/**
* Allocation
*/
void* operator new(size_t size);
/**
* Array Allocation
*/
void* operator new[](std::size_t _Count);
/**
* Deallocation
*/
void operator delete(void* _Ptr);
/**
* Array deallocation
*/
void operator delete[](void* _Ptr);
};
and all complex types must be derive from this base.
class STORAGE_CLASS_INFO xsd__base64Binary : public xsd__base {
// rest of code...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]