What is the default action for the Application exit? I tried creating a message map for OnAppExit to perform some checking and cleanup. Everything worked except the applicaiton did not exit. So, I added exit(0) to the end of the function. In debug mode, everything works fine but in release mode I get an exception and the program crashes. I disabled the function and message map and the program exists without any problem in release or debug. What should I call to terminate the application when overriding the AppExit()?


Thanks,


Steve