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,816 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,809 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,793 Views)