04-17-2011 08:59 AM
I am trying to figure out what is causing this exception
When I call the follwing function it throws this exception
DAQmxCreateTask(DAQMXTASKHANDLE_DEV4_AI,&m_tTaskHandle14DEV4);
As of now it seems to assign the pointer address to the taskHandle okay but I am wondering why it is throwing this excpetion
04-18-2011 03:25 PM
Hi boilermaker74,
Do you have any screenshots or example code that is causing this exception? It has been noted in the past that this can be more related to a Microsoft first chance exception and not DAQmx but of course that's not always the case. Please see the document below about First Chance Exceptions and when they can occur.
http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx
Also, if possible can you tell me which version of DAQmx you are running and if you have tried any of our example code?
10-03-2012 02:22 AM
I get the exact same exception in my C++ code when calling:
char szDevice[2056] = {0};
DAQmxGetSysDevNames(szDevice,_countof(szDevice));
However the call seems to work fine.
I'm using DAQmx v9.4.
-cpede