DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Create TDMS File from .NET5 allways get error DDC_StorageCouldNotBeOpened

Solved!
Go to solution

Hello

 

I'm using the c_dll_tdm to create a TDMS file in c#, and it works fine for a .Net Framwork 4.5 project. But if i try to use it in a .NET5 project. The function DDC_CreateFile return a DDC_StorageCouldNotBeOpened error.

 

If try to create an existing TDMS file, the error code changes to DDC_FileAlreadyExists error.

 

Any Idea?

JC.

0 Kudos
Message 1 of 3
(433 Views)
Solution
Accepted by topic author Runess

access_ni_tdm_c_dll_with_dot_net

uses pinvoke-interop-assistant to create a .net wrapper.

At least when I created the code I run it with .net 5 (Core) which worked.

Maybe it hels somehow.

 

Greetings

Andreas

0 Kudos
Message 2 of 3
(381 Views)

I created my own wrapper and works as expected.

Thanks. 

0 Kudos
Message 3 of 3
(356 Views)