Hello All,

 I have xerces-1.5.2, Win2K.
 I have built debug configuration and try parse with SAX2parser XML like this

 <?xml version="1.0" ?>
 <segment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <element xsi:nil="true"/>
 </segment>

 So I haven't xsi:schemaLocation and xsi:noNamespaceSchemaLocation. I
 do not want any validation. I use SAX2Print sample.
 Program runs fine, but when closing there is an exception:
 "Heap block at 0079DFA0 modified at 0079DFE8 past requested size of
 40"

 I have looked for it. When parser was created fValidator member
 pointed to fDTDValidator. But when parser found xsi:nil attribute, it
 used fValidator as SchemaValidator. Please, see XMLScanner2.cpp
 line 1388. There is a static_cast in this line. But object in
 fValidator is not a SchemaValidator. It is a DTDValidator in this
 moment. Such exception rises only in Debug configuration.

 Thus question is: Is this a bug or I tried use incorrect input data?

-- 
Best regards,
 Alexey                          mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to