From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(955 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
(903 Views)

I created my own wrapper and works as expected.

Thanks. 

0 Kudos
Message 3 of 3
(878 Views)