05-30-2007 05:42 AM
05-30-2007 08:42 AM
AutoT,
Could you post your sequence file?
Are you using the API to execute the sequence?
What happens if you execute the sequence in the TestStand sequence editor?
Could you provide more details about your use case?
Regards.
05-30-2007 08:54 AM
The sequence file was created with TestStand and simply included a single popup.
I am using the following line to execute the sequence file:
TS::SequenceFilePtr modelSeqFile = script->GetModelSequenceFile(&modelDescriptionString);
myData.engine->NewExecution(script, entryPoint, modelSeqFile, VARIANT_FALSE, TS_ExecTypeMask_Normal);
where script is simply a sequence file pointer.
When I try running this from code the first time, the popup is not displayed and an error is encountered. When it is run subsequent times, things run ok.
If the sequence is run in the TestStand sequence editor, it runs fine each time.
Regards,
AutoT
05-30-2007 09:27 AM
AutoT,
What type of error do you get?
Could you attach the error description?
Thank you.
05-30-2007 09:46 AM
05-31-2007 07:25 AM
Autot,
I could not reproduce the behavior you describe.
Could you attach a simple example containing your sequence and simplified code.
It could be that you are getting the exception because of an invalid pointer.
I would recommend to make sure all the pointers are valid. (Probably you already did this)
You could try to call other API methods and verify you do not get the acces violation.
Antonio Lie.