Hello,
I have a sequence which must loop a very long time, with cyclic access to hardware components.
In order to limit the amount of memory used by my application i decide to use the famous "Disable result recording" flag.
Beside this problem, my sequence don't have to collapse in case of runtime error (Due to hardware manipulations during execution),
and operators don't have to aknowledge the "error dialog box" ... every time an error occurs !
To handle my runtime errors, i deceide to :
- The main sequence is a loop calling the different fonctionnalities by sequence calls
- I configure the sequence calls with "ignore RTE", so my mainSequence never stops on runtime error
- I Configure the "runtime error handling" with the Run cleanup ... so no popup disturbs the operator
This is OK, but i also want to treat my errors (Tracing at least) ... and then i get the folowing problem ...
- The errors are no more accessible using Runstate.previousStep.result.error... ... Runstate.sequence.main.... .... , because i have used the "Disable result recording" flag.
- Storing a runtime error in locals is not possible in post expressions ... because post expressions are not executing after a runtime error
Perhaps the only way to handle my problem would be to use the SequenceFilePostStepRuntimeError callback ...
But doing so, would need to use stationGlobals or FilesGlobals to get back the error in my main sequence. (A complicate architecture only to get an error !)
So, it would be nice, to be abble to ...
- Let the result recording working
- This make the runstate.previousstep.result.error... works fine
- And sometimes, be abble to flush the result tree (Using a new API function. Something like <Execution>.FlushResults( ....) )
PS : My sequence don't use any report, database writing ... thats why disabling results recording is possible !
I don't know if i am clear ? (And with my bad english ???) 
Manu.