I've since found the problem and it's due to the way the log file is created.
When an error occures, the vbp project was trying to mail the logfile. The trouble is that these steps are also logged (this can be turned of like in the logging sample). And this would result in steps that are not closed correctly.
On top of this I was switching to a diffrent log file to log only a few steps. I guess I was confusing myself here.
|