I'm trying to use the function MIXmlDocumentLoad but when my MapBasic program calls this function the whole of MI Pro (v17) crashes. The same code works fine in the 32 bit version of MI (v11.5).
The code I am using is:
Dim bParseError As SmallInt
Dim hXMLDoc As MIXmlDocument
Dim hXMLRoot As MIXmlNode
Dim hXMLNode As MIXmlNode
OnError Goto GetTitleError
'-------------------------------------------------
' Create a document handle
'-------------------------------------------------
hXMLDoc = MIXmlDocumentCreate()
If hXMLDoc Then
'-------------------------------------------------
' Load the document into the document handle
'-------------------------------------------------
Dim iXMLLoad As SmallInt
iXMLLoad = MIXmlDocumentLoad(hXMLDoc, "D:\LRCs\LERC\DataSelector\64bit\DataSelector.xml", bParseError, 0, 0)
I'm using:
Define MIXML_LIB_NAME "MapInfo.XmlUtil.dll"
in the 64bit and:
Define MIXML_LIB_NAME "GmlXlat.dll"
in the 32bit.
C