Hi Charles,
I love that messagebox - If I remember correctly, despite the message saying that cancel and suspend are not allowed, the messagebox actually has cancel and suspend buttons (or at least a cancel button)! Pressing the button brings up the same dialog!
The SUSPEND and CANCEL commands cannot be used within the ON SHUTDOWN routine: I think what is happening is that when stepping through code in the debugger, you are doing the equivalent of a suspend after each line of code executes.
Rick
>I have an app with an on shutdown calling a method in oApp. When I issue quit, I am getting a CANCEL or SUSPEND is not allowed if I am tracing through the debugger. When the debugger is not tracing or is closed, nothing happens. I want the call to oApp to occur. In the trace, this command appears as the active command when the error message appears. Im I just being stupid here?