GC don't understand
Laszlo Burger
nahon at t-online.hu
Thu Nov 16 08:02:36 PST 2006
Mariano wrote:
> == 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.
I did remove them, this is why I'm surprised.
More information about the Digitalmars-d
mailing list