Single Thread Problem..
C#
2
Posts
2
Posters
0
Views
1
Watching
-
In my main program i create a thread to run a function which is infinite (while (true)) when i close the main frame of the program the thread is still running how can i make it collected by the gc automaticly when the main frame closes?? Thanks
thread.IsBackground = true; will cause the thread to be aborted when the application is closed.