Program closed still in memory...

  • Thread starter Thread starter Drunkalot
  • Start date Start date
D

Drunkalot

I made a program that contain a thread, when i close the program clicking on
the x int the to-right of the form, the form close, but i open the task
manager and the thread still working...

What should i do to close that thread???

In the dispose method i call the GC.Collect() and
t1.abort() but it does not work...


thx...
 
Hi,

You should either wait for thread (Thread.Join - but I guess your thread is
stuck since Abort doesn't work) or make it background (set IsBackground =
true before starting it - the program will kill it upon exiting.
 
Back
Top