DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

TDM C DLL not working?

I'm trying to use the TDM C library to read TDMS files.  Compiles, links and runs OK.  But whenever I try and load a file it fails at DDC_OpenFileEx (or DDC_OpenFile) returning:

 

DDC_StorageCouldNotBeOpened = -6211, // The storage could not be opened.

 

Using some samples from another post (https://forums.ni.com/t5/DIAdem/6211-DDC-StorageCouldNotBeOpened-The-storage-could-not-be-opened/td-...)  I get the following .TDM.log files generated:

 

***************** New logfile section *******************
TDM: ERROR: parse from IFileIO_Stream_Read(1) : fatal error xercesc::SAXParseException 1 : invalid byte '¯' at position 1 of a 1-byte sequence
TDM: ERROR: fatal error (42) :Invalid XML file or error in the model section!

 

***************** New logfile section *******************
TDM: ERROR: parse from IFileIO_Stream_Read(1) : fatal error xercesc::SAXParseException 1 : invalid byte '' at position 2 of a 2-byte sequence
TDM: ERROR: fatal error (42) :Invalid XML file or error in the model section!

 

The files open OK with the Excel Add-in.

 

Is this a problem with the library (seems unlikely given it was released in 2017!)  Or not compatible with MSVC 2022?

 

Many thanks, Ben.

0 Kudos
Message 1 of 1
(278 Views)