>I'm getting a C5 error when quiting an application. This only occurrs about
>10% of the time. How do you go about resolving these kinds of errors?
You might try explicitly releasing variables instead of just letting them go out of scope at the end of procedures: this helps in some situations.