I'm using c# to write a windows form which installs and deploys WSPs to a sharepoint server. The problem I am having is that when I detect a problem and quit the application or when the cross in the top right of the form is pressed the form closes but the task is still in the process list.
My quit code is:
this.close();
application.quit();
The way i change between forms is:
form2.show();
form1.hide();
My only guess so far is that I use a few background workers, possibly these are not being terminated at the same time?
Thanks