Hi Vikas,
> void XMLPlatformUtils::Initialize(const char* const locale
> , const char* const nlsHome
> , PanicHandler* const panicHandler
> , MemoryManager* const memoryManager)
> {
>
> if (gInitFlag == LONG_MAX)
> return;
>
> // Set pluggable memory manager
> if (!fgMemoryManager)
> {
> if (memoryManager)
> {
> fgMemoryManager = memoryManager;
> fgMemMgrAdopted = false; // Vikas: should it not be set to true
We do not want to adopt this. The user who passed this in is still
responsible for it.
> else
> {
> fgMemoryManager = new MemoryManagerImpl(); // Vikas: and here
> fgMemMgrAdopted should not be set to false
Here we create one so we must be aware that we need to delete it. The
fgMemMgrAdded has already been set to true so we don't need to do anything
here.
Gareth
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]