05-30-2006 09:50 AM
05-31-2006 04:55 PM
06-01-2006 10:40 AM
This is it.... Doesn't get much simpler that this:
#include
"stdtst.h"#include
"tsutil.h"#include
"tsapi_utilities.h"void
__declspec(dllexport) PassFail(tTestData * testData, tTestError * testError){
char buffer[256];GenericMessagePopup (
"Test Panel", "Sample Project", "OK", "Quit", "",buffer, 255, 0, VAL_GENERIC_POPUP_BTN1,
VAL_GENERIC_POPUP_BTN1, VAL_GENERIC_POPUP_BTN2);
return;}
Some new information though:
The fault only occurs when multiple dlls are being loaded into TestStand. These dlls are a mix of CVI 6.0 and CVI 8.0.1. If I tell TestStand to load the step that calls this code dynamically the fault disappears.
With the number of test sequences and test code; rebuilding all of the test code in 8.0.1 or modifying all of our test sequences is not going to be an acceptable work around.
Hopefully someone has some better ideas than this approach as a work around.
Thanks, Steve
06-05-2006 12:19 PM
Check the size of your buffer. The error usually points to an array (buffer) overbound.
It is trying to place something larger than the size of the buffer (or array).
06-07-2006 03:41 PM
Hi,
Why dont you just use the TestStand Message StepType?
Also, how are you filling buffer? Your code snippet just shows it declare then its used so its going to have grabbage in it.
Regards
Ray Farmer
06-07-2006 05:37 PM
Many people here have started using The TestStand Message StepType. Many have changed thier sequences to have TestStand load the step that calls this type of code dynamically which causes the fault to disappear. I'm presently rebuilding all of the process model code in CVI 8.0.1.
The buffer is of course filled by "GenericMessagePopup". I must not understand the question 😞
Upgrading to latest NI versions..... Sounds so simple!
06-08-2006 02:46 AM
>>Upgrading to latest NI versions..... Sounds so simple!
and sometimes a bold move.
Regards
Ray Farmer
06-08-2006 07:03 AM
@Ray Farmer wrote:
No, my mistake, it the response buffer.and sometimes a bold move.
I thought it might be related to the buffer.. at least that's what the error code was in my past experience.
Upgrade??? now that's bold! 😮
Probably not necessary in this case 😉
06-08-2006 07:44 AM
You got to love that screen name "JoeLabView". That's right up there with "JoeTestEngineer". I wonder if there is a "JoeTestStand" out there. Maybe something has changed in TestStand in how it loads DLLs into memory and "JoeTestStand" is reluctant to join in on this thread.
Where is "JoeTestStand"?
06-08-2006 08:58 AM
LOL!! 😄
Yeah... I always saw Ray Farmer as some sort of JoeTestStand...
The name's up for grab, though.. 😉
Hey!! Someone tried to copy my nick!! 😮 Some dude calling himself joeLabviewEngineer... -wow- 😛