Joe,
Although I'm not sure if any of the following are the real cause of your problem, I have the following suggestions:
1. There could be a problem with calling
__stdcall MSVC functions from a __cdecl CVI function. As a workaround wrap the _cdecl call inside a _stdcall call that is exposed or exported to TestStand or vice-versa. This can be a problem because if _cdecl is used, the calling function is responsible for cleaning up the stack and if _stdcall is used, the called function is responsible for cleaning up the stack.
2.Don't mix Debug version of one DLL with the Release version of the other DLL. I had some bad experiences doing this and both DLLs where developed in MSVC. Allways use either Debug either Release versions of DLLs.
Hope this helps,
Silvius
Silvius Iancu