V
Vladimir Kotlyarov
I've mafe a simple stress test for my Word 2003. In one large document (~700
pages) I've created a following macro:
Sub test
Dim s as String, i as Long
i = 0
Do While True
i = i + 1
Debug.Print i
s = ActiveDocument.Range.XML
ActiveDocument.Range.InsertXML s
Loop
End sub
And when i = 82, ActiveDocument.Range.InsertXML method fails and says it
cannot insert an XML string in this position.
I rewrote this code in C++, and detect that MSXML5 module raises an
exception deeply in assembly code.
What does it mean? An XML string (in s variable) is correct, it can be saved
to disk and loaded without problems in the next time, after I restart Word.
Help!!!
pages) I've created a following macro:
Sub test
Dim s as String, i as Long
i = 0
Do While True
i = i + 1
Debug.Print i
s = ActiveDocument.Range.XML
ActiveDocument.Range.InsertXML s
Loop
End sub
And when i = 82, ActiveDocument.Range.InsertXML method fails and says it
cannot insert an XML string in this position.
I rewrote this code in C++, and detect that MSXML5 module raises an
exception deeply in assembly code.
What does it mean? An XML string (in s variable) is correct, it can be saved
to disk and loaded without problems in the next time, after I restart Word.
Help!!!