Hi All, I have been using the Xceres::DOMParser in my code to parse some XML structure. Recently we faced an issue that the DOMParser:;parse throwing out of memory exception even when there is required memory available.
I tried with an simple test to reproduce that. Test Environment: Xceres Version : xerces25-vc++-9.0-amd64.dll - Version - 2.5.0.0 System Info: Microsoft Windows Server 2003 R2 Enterprise X64 edition Service Pack 2 I just sent an 7 GB size of string to DOMParser:;parse function. DOMParser:;parse (source) - Where the source contains a string size of 7 GB. The parse function gave an error saying out of memory WARNING: 'new' out of memory, wanted 7851736645 bytes INFO: 12324032512 bytes contiguous, 12324032512 bytes free Note: In our code we have registered our own memory exception handler (as a hook) which will be called when there is an out of memory exception in any third party component. Once receiving the exception, our handlers will log the above warning message which contains the requested memory and the available memory information. I wonder why the DOMParser:;parse was not able to allocate 7 GB when there is 12 GB of memory available? Is this a bug in DOMParser? How to log this bug in Xceres database? Thanks, Sendil ------------------------------------------------------------------------------------------- SendilKumar Natarajan Software Engineer, APF Manufacturing Automation Services, Applied Materials ESPEE IT PARK, No: 5, Jawarhalal Nehru Road, Ekkaduthangal, Chennai : 600 032 Phone (Main) +91-44-3919-7171 Phone (Direct) + 91-44-3919-7028 Applied Tie line #9-575-7028 Time Zone +5.5 Hour GMT Innovation Drive Business ------------------------------------------------------------------------------------------- The content of this message is Applied Materials Confidential. If you are not the intended recipient and have received this message in error, any use or distribution is prohibited. Please notify me immediately by reply e-mail and delete this message from your computer system. Thank you.
