01-29-2015 04:21 AM
Hi,
I'm cross posting this from the CVI forum where it hasn't yet had a responce. It maybe more of a TestStand issue than CVI.
I have a DLL which I wrote using CVI.
There isn't a UIR file.
When the process attaches, I call a function which;
The DLL has two functions to use the panel and it's controls.
If I call these function from a CVI test application they work as intended.
If I call the functions from TestStand with the CVI debugger attached they work as expected.
If I call the functions from TestStand without CVI debugging then about 95% of the time the functions fail.
Failure is always at the following functions;
The error returned by the functions is -4 which is the error code for an invalid handle.
To try and debug this I have written the handles to a file as part of the error trap and compared them to the handles written to another file when the panel and controls are created. They are the same and therefore should be vaild.
There are several other functions in the DLL which work correctly with TestStand although none of them use a panel or controls.
I'd be grateful for any insights.
John.
01-30-2015 08:19 AM
Hi John,
To further allow me to understand the problem that you are having, could you please provide me with the versions of software that you are using? (i.e. CVI, TestStand...)
Thanks
01-30-2015 08:25 AM
Hi,
Development PC
Win 7 Home 64-bit Completely up to date.
CVI 2103 13.0.2 (278)
TestStand 2010
Deployment PC
Win XP Prof 32-bit. Completely up to date.
Does not have CVI development system installed.
TestStand 2014
I'm also happy to post the DLL project and a simple sequence file.
Cheers,
John
01-30-2015 08:30 AM
Hi John,
Yes posting those would be fantastic.
01-30-2015 08:40 AM
CVI project, DLL and a simple sequence attached.
01-30-2015 10:10 AM - edited 01-30-2015 10:12 AM
.