You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Samarah, Mohammed" <ms...@harris.com> on 2000/12/19 16:01:26 UTC

DOMParser::Parse method generates a user breakpoint and 1st chanc e exception

When running an XML file through the DOMParser::Parse method, the debugger
reports a memory leak upon termination of the application. This is the case if
any of the files processed is not a well-formed XML file or had an error in the
XML signature. The output window shows the following message:

		First-chance exception in zJSImporter.exe (KERNEL32.DLL):
0xE06D7363: Microsoft C++ Exception.
		Detected memory leaks!
		Dumping objects ->
		D:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\crtdbg.h(552) : {1108} normal block at 0x01F19120, 111 bytes
long.
		 Data: <An exception occ> 41 6E 20 65 78 63 65 70 74 69 6F 6E 20
6F 63 63 
		D:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\crtdbg.h(552) : {1107} normal block at 0x01F191C0, 24 bytes
long.
		 Data: <\\ms\XMLImport\b> 5C 5C 6D 73 5C 58 4D 4C 49 6D 70 6F 72
74 5C 62 
		Object dump complete.

I ran the same XML files through the DOMCount sample project and the debugger
reported: "User breakpoint called from code at 0x77f762e8" upon the invocation
of the parse method, and then showed the following lines in the output window:

		HEAP[DOMCount.exe]: Heap block at 8e7918 modified at 8e7745 past
requested size of fffffe25
		First-chance exception in DOMCount.exe (KERNEL32.DLL):
0xE06D7363: Microsoft C++ Exception.
		First-chance exception in DOMCount.exe (KERNEL32.DLL):
0xE06D7363: Microsoft C++ Exception.
		First-chance exception in DOMCount.exe (KERNEL32.DLL):
0xE06D7363: Microsoft C++ Exception.

The XML files are attached below. I ran this test against the
"xerces-c_1_3D.dll" library on NT4+SP6.


 <<InvalidEncodingScheme.xml>>  <<MissingEndofTag.xml>>