Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to TXMLDocument?

Recently we upgraded our code from Delphi 2009 to Delphi XE and updated our Indy components (not sure if this is relevant).

But ever since then we have had errors on Windows Server 2003 machines when loading and saving XML files.

XMLDoc.LoadFromFile()
XMLDoc.SaveToFile()

The following is the error

The DLL msvcrt.dll is much smaller on Windows Server 2003 (300kb or so) compared to over 600kb on other operating systems... So its missing something in that file and its causing the error...

Does anyone know how to fix this? Or is there an alternative to TXMLDocument that I can try?

like image 589
Trevor Avatar asked Oct 15 '12 17:10

Trevor


2 Answers

By default, TXMLDocument/IXMLDocument is just a wrapper around the MSXML COM interfaces when running on Windows platforms. Neither TXMLDocument nor Indy use the _ftol2_sse() function, or even link to msvcrt.dll. Something else in your project is at fault.

like image 117
Remy Lebeau Avatar answered Sep 27 '22 17:09

Remy Lebeau


msvcrt.dll is (part of) the Microsoft Visual C++ Runtime. I think you got an older (or maybe even newer) version of this runtime that doesn't include this function.

Now you'll have to find out where this function is called. Do you link obj files with your project or use (other) 3rd party dll's?

like image 32
GolezTrol Avatar answered Sep 27 '22 16:09

GolezTrol