> Dave,
>
> Thanks for the reply. The reason you advise against this is because the
> Xerces MemoryManager is used for all kinds of allocations, not just
> strings?
Every Xerces-C API or object member function that allocates memory has a
MemoryManager parameter. By design, that MemoryManager i
Dave,
Thanks for the reply. The reason you advise against this is because the
Xerces MemoryManager is used for all kinds of allocations, not just
strings?
Elisha
> Providing custom allocators for the standard library is tricky
business,
> depending on your compilers' implementations. Providin
> I'm trying to understand the MemoryManager class that comes with
> XercesC. Basically I would like to know what kinds of allocations is it
> optimized for?
The MemoryManager class is an abstract base class that allows many
implementations. The default implementation just calls the standard
o
Hi Elisha,
the MemoryManagerImpl class that is used by default by Xerces is
simply a wrapper for the operator new/delete; you will need to create
and install your own class. As a reference, you can look at the code
of DOMDocumentImpl::allocate.
Hope this helps,
Alberto
At 18.51 12/09/2005 -0
Hi,
I'm trying to understand the MemoryManager class that comes with
XercesC. Basically I would like to know what kinds of allocations is it
optimized for?
I am looking for a memory manager, to use with Xerces and also with the
std::string class and similar string classes that use a custom alloc