> My example certainly reuses the thread names...  You just cannot reuse a 
> thread name when there is a thread with the same name that is currently 
> in a "running" state. 
>

Thats weird this is my code (sorry folks I prefer cfscript)

<cfcomponent>
<cffunction name = 'test' access='remote' returnformat='json'>
 <cfscript>
var ii = 0;
 while(ii < 500000)
{
for(var i=1; i<=5; i++)
{
thread action="run" name="thread#ii##i#" myvar=i
{
console("running thread number #myvar#");
}
}

for(var i=1; i<=5; i++)
{
thread action="join" name="thread#ii##i#";
 structDelete(cfthread, "thread#ii##i#");
}

 ii++;
console(ii);
}

return "done ;)";
</cfscript>
</cffunction>
</cfcomponent>

if you change the thread name  name="thread#ii##i#" to 
this  name="thread#i#" you have this beautiful image

http://s3.kkloud.com/gett/13oKLqO/ThreadError.jpg.0x675.wumy3ao69k3ayvihrmuhqoxam01kyb9.jpg

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to