DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

TDM C DLL Timestamp Write Exception

I'm using the TDM C DLL to try and log data as a TDMS file but every time I try and write the timestamp channel I get this error:


"Exception thrown at 0x000007FEFCD4B87D in TDMS_Testing.exe: Microsoft C++ exception: ni::usi::Exception at memory location 0x000000000016DCD8."

 

The hex values change but it happens every time I call DDC_AppendDataValuesTimestampComponents. No other channel throws this exception. It seems like the timestamp still gets written but it's quite an annoyance when this pops up for every logging event. I attached my test code too.

 

Thanks for your help!

0 Kudos
Message 1 of 3
(1,272 Views)

Not shure why this exception occures but it is not unhandled.

So running your application does only produce popups if you change the exception setting in visual studio to break on each exception.

Default Visual studio will not create a popup:

AndreasK_0-1596121635483.png

only setting it to always break will give you the pop ups

AndreasK_1-1596121689350.png

 

Is this what you are seeing? Or is there a different aspect?

So running from command line without visual studio does not show popups. Right?

0 Kudos
Message 2 of 3
(1,179 Views)

Yeah, it just pops up as an exception in Visual Studio and keeps functioning properly. When it's run just as an exe, nothing happens. So I guess I'll just noting this as a "feature" of VS ha ha

0 Kudos
Message 3 of 3
(1,153 Views)