I'm using DAQmx code from a DLL that I developed.
I'm calling this DLL from C++ code.
Everything works good up to a point.
I can read the DAQ, clear it, and reinitialize it.
The crash happens when I close the application.
The fault happens in the function DAQmxGet4322CalAdjustPoints.
I'm not calling this function from my code at all.
There must be a bungled pointer somewhere but i'm pretty sure
that it's not in my code.
Here is a stack trace:
0 nicaiu!DAQmxGet4322CalAdjustPoints C:\Windows\SysWOW64\nicaiu.dll 0x14050619
1 nicaiu!DAQmxUnreserveNetworkDevice C:\Windows\SysWOW64\nicaiu.dll 0x14060977
2 nicaiu!DAQmxSwitchCloseRelays C:\Windows\SysWOW64\nicaiu.dll 0x14060b93
3 ?? C:\Temp\TestDll.dll 0x1373095d
4 TestDll!OpenComPort C:\Temp\TestDll.dll 0x13739f6c
5 ?? C:\Temp\TestDll.dll 0x136b4689
6 ntdll!RtlpNtMakeTemporaryKey C:\Windows\system32\ntdll.dll 0x76ff99a0
7 ?? 0x136b0000
8 ntdll!LdrUnregisterDllNotification C:\Windows\system32\ntdll.dll 0x7700d702
9 ?? C:\Temp\TestDll.dll 0x136b45f0
10 ntdll!TpSetPoolStackInformation C:\Windows\system32\ntdll.dll 0x7700d5a4
11 ?? 0xac2aa0
12 KERNEL32!BasepFreeActivationContextActivationBlock C:\Windows\syswow64\kernel32.dll 0x755e79c5
13 ??