Error when loading valid Windows-1252 document “System error: -2146697210”
Somehow, sometimes the code below generates an error when loading valid Windows-1252 XML. It fails on Windows XP Professional x86 SP3 using MSXML6. It succeeds on Windows 7 Ultimate x64 SP1 using MSXML6. Note: the code below is written in Delphi, but equivalent code also fails in other environments. procedure TXMLEOSErrorTestCase.Test; var XmlDocument: IXMLDOMDocument3; XmlFileName: string; begin XmlDocument := CoFreeThreadedDOMDocument60.Create(); XmlFileName := TPath.Combine(TPath.GetDirectoryName(ParamStr(0)), '1-Normal.xml'); if not XmlDocument.load(XmlFileName) then Parse(XmlDocument