msxml6

Error when loading valid Windows-1252 document “System error: -2146697210”

谁说我不能喝 提交于 2019-11-27 09:47:42
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

Error when loading valid Windows-1252 document “System error: -2146697210”

回眸只為那壹抹淺笑 提交于 2019-11-26 14:55:57
问题 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