My problem is that the application doesn’t terminate when I close the form using the close box on the caption bar.
When I am in the middle of some I/O operation i want to quit the application without performing the I/O operation.
Actually it seems as if the program is closed but task manager’s process list shows that it is not.
How i can cancel I/O operation by force?
Closing form only makes the form invisible. However if there is any process running in the main or other thread, the app would not terminated. You have to make sure all the resources are closed or disposed.