You're not doing anything wrong. The only time I've seen this problem is if I'm running the program in a debugger, and crash things. This is not something a typical user does though.
_________________________
Regards,
Richard Ay - Consultant