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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top