Berin,
> Are you able to provide a small piece of code that reproduces the
> problem? Happy to have a look-see!
Thank you, I'll try to make small example and to send it to you.
I've done some debugging and found out that under Debug mode it fails to
allocate memory. This is one example (DOMDocumentImpl.cpp):
void* newBlock = 0;
try {
newBlock = fMemoryManager->allocate(kHeapAllocSize * sizeof(char));
//new char[kHeapAllocSize];
} catch (...) {
ThrowXML(RuntimeException, XMLExcepts::Out_Of_Memory);
}
if (!newBlock)
ThrowXML(RuntimeException, XMLExcepts::Out_Of_Memory);
As newBlock is 0 an exception will raise ( ThrowXML() ) on the last line
of code.
Do you have any ideas why malloc() fails? I have more than enough
memory. I've noticed that even "new" fails in CString::GetBuffer()
function (MFC\SRC\strcore.cpp).
Best regards,
Milan