I had a PEMSTATUS call inside a FOR loop.
According to technet the problem was fixed in SP3, we have been running VS6 with SP5 for ages now, so I think it is something else.
Anyways the problem is resolved now, thanks for the help.
- Craig
"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson