on closing the main form of the application(which I call so many methods on it,etc) if I run my application from IDE and want to close it, it is ok but if I just run the exe file It will throw an exception.
so what way do you propose to me for debugging it? as I said when I run it from the IDE, it is Ok and no error occurs