I have the following application that is causing a problem.
VXI Instrument driver "inst_32.dll" that contains a global data structure.
Application dll that calls the VXI instrument driver "apps.dll". The application dll functions require the session handle to be passed as a parameter and calls the inst_32.dll functions.
I created a CVI executable that performs the following
main() {
/* get session handle from inst_32.dll */
inst_init(&vi);
/* call function "foo" in apps.dll, function "foo" then calls function "bar" in inst_32.dll */
foo(vi);
return;
}
Function "bar" gets data from the global structure in the inst_32.dll.
When I run this in CVI everything works.
In TestStand the following sequence does not work;
Step 1. Call inst_init to get session handle.
Step 2. Call foo passing the session handle from step 1.
Each step seems to have its own seperate instance of the "inst_32.dll" global data structure.
Why does this work in CVI and not in TestStand?
Message Edited by hockyhubby on 07-12-2005 10:46 AM