From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting AcceesViolationException from NationalInstruments.DAQmx.Task.UnregisterAsyncWaitHandle

Solved!
Go to solution

No problem; thanks for clarifying that. And, I was actually thinking the same thing about BeginReadMultiSample. Please do try using that instead and let me know how it goes.

 

-Mike

0 Kudos
Message 11 of 13
(2,812 Views)
Solution
Accepted by topic author hpeled

Hi Mike,

This is it!

I changed the calls from BeginMemoryOptimizedReadMultiSample and EndMemoryOptimizedReadMultiSample to BeginReadMultiSample and EndReadMultiSample, and got no exceptions.

I still want to understand what was the problem though,

 

Thanks,

Hadas

 

 

0 Kudos
Message 12 of 13
(2,805 Views)

Glad to hear that it's working! I'm not sure why the non-optimized version of the function's working. There aren't any differences in the documentation that jump out at me. I can consult with a colleague, but this may just be a one-off case of strange behavior exclusive to your machine.

 

-Mike

0 Kudos
Message 13 of 13
(2,789 Views)