In my application, I am using a CToolbar object to create two buttons.One button launches a calculator and the other one is an exit button to exit the application.

When clicking on the calculator button, the calc launches fine, however,when I click on the exit button, the application crashes.

Both of them load on the application init, so I believe there is no issue with the loading of the toolbar itself.....

Any Help regarding this....