Hi,
I began to use TS3.0+CVI7.0 after being used to TS2.0+CVI5.5.
I tried to use, for the first time, the new module call format, and I must have done some very basic mistake.
While in debug mode, I get the above error upon exiting the procedure.
Here is the procedure called:
void __declspec(dllexport) PowerUP(CAObjHandle seqContextCVI, long *result,
char reportText[1024], short *errorOccurred, long *errorCode, char errorMsg[1024])
{
int error = 0;
ErrMsg errMsg = {'\0'};
ERRORINFO errorInfo;
// char *lastUserName = NULL;
Boolean success = TRUE;
char *StepTitle = {'\0'}, NextErrMsg[BUFFER_LEN] = {'\0'}, buf[128];
StepTitle = "Begin Power Test";
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
EndOfTest:
// FREE RESOURCES
// if (lastUserName != NULL)
// CA_FreeMemory(lastUserName);
/* Error Handling */
if (error != 0 ) {
success = FALSE;
Fmt(buf,"%s<****ERROR: %s",StepTitle); //how do I put > in the string?
errChk(mstr_WriteToLog (seqContextCVI, buf, 2, 2, NextErrMsg));
}
/* Set up values for TS */
if (success)
*result = PASS;
else {
*result = FAIL;
strcpy(reportText, StepTitle);
}
Error:
/* for run-time error*/
if (error != 0) {
if (*NextErrMsg != '\0')
sprintf(errMsg,"PowerUP - %s / %s",StepTitle, NextErrMsg);
else
sprintf(errMsg,"PowerUP - %s",StepTitle);
*errorOccurred = TRUE;
*errorCode = error;
errorMsg =
strcpy(errorMsg, errMsg);
}
} //PowerUP
What is the error?
Thanks
Rafi