axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michail Ushakov (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Created: (AXISCPP-1042) Destroying complex xsd__ types allocated by the client proxy
Date Tue, 09 Oct 2007 13:42:51 GMT
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message