GC don't understand

Mariano rotoshi at yahoo.com
Thu Nov 16 07:33:20 PST 2006


== Quote from Nahon (lburger at hu.tesco-europe.com)'s article
> Daniel Keep wrote:
> (AFAIK when the
> thread's run() finishes, the thread is terminated. Am I wrong?)
> Regards,
> Nahon

er, if you have an array with referecens to the threads, then they will be kept by the GC. You need to efectivelly
remove it from the array.
You can do this with ''threads.remove(dead)'' if in an associative array, or you have to do threads =
threads[1..dead]~threads[dead+1~length].

Mariano.



More information about the Digitalmars-d mailing list