I am trying to close my application using Application.exi t() in the
frmMain_Closing event. When the form closes the process does not. My
application only has one form (no other classes either). The form has
a really long loop which generates approx. 700 .csv files. I do not create
any threads myself (Application.ex itthread() doesn't work either).
To counteract this I have decided to use the Environment.exi t(-1)
method instead.
What is the difference between the three methods?
Using environment.exi t() seems a strange way to do things considering there
is a Application.exi t method which claims to do what the Environment.exi t()
method does.
frmMain_Closing event. When the form closes the process does not. My
application only has one form (no other classes either). The form has
a really long loop which generates approx. 700 .csv files. I do not create
any threads myself (Application.ex itthread() doesn't work either).
To counteract this I have decided to use the Environment.exi t(-1)
method instead.
What is the difference between the three methods?
Using environment.exi t() seems a strange way to do things considering there
is a Application.exi t method which claims to do what the Environment.exi t()
method does.
Comment