View Single Post
  #4 (permalink)  
Old April 10th, 2005, 07:50 PM
Bob Bedell Bob Bedell is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Hi Abdul,

Not quite sure whats happening there. Processes don't get garbage collected and should terminate when your program returns to the main entry routine:

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
    Application.Run(new Form1());
} //process should terminate here when codepath returns to this point.

The only thing I can think of that might prevent that from happening is if you a spawning a new thread in you code somewhere other than the main UI thread and that second thread isn't terminating successfully.

Bob



Reply With Quote