Can threads be referenced with the request scope?

Troy Jones

[cid:[email protected]]
___________________________________________________________________________________________

Troy Jones  |  Director of Technical Services  |  Dynapp Inc  |  1-800-830-5192 
 ext. 603  |  dynapp.com<http://www.dynapp.com/>  |  
facebook.com/dynapp<http://www.facebook.com/dynapp>

From: [email protected] [mailto:[email protected]] On Behalf Of Mischa Uppelschoten
Sent: Wednesday, May 25, 2011 3:30 PM
To: [email protected]
Subject: [ACFUG Discuss] CFThread name issue

Running into a headscratcher with cfthread. CF 8 Ent, Win 2k3

This works:

<cfthread action="RUN" name="thread1">
 <cfset thread.myvar = rand()>
</cfthread>
<cfthread action="JOIN" name="thread1"></cfthread>
<cfdump var="#thread1.myvar#">


this throws an error "Element THREAD1.MYVAR is undefined in REQUEST":

<cfthread action="RUN" name="request.thread1">
 <cfset thread.myvar = rand()>
</cfthread>
<cfthread action="JOIN" name="request.thread1"></cfthread>
<cfdump var="#request.thread1.myvar#">

What gives? How do I prevent scope hunting when referencing the result of my 
threads?
Thanks!
Mischa.

________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 10.0.1375 / Virus Database: 1509/3659 - Release Date: 05/25/11

-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink<http://www.fusionlink.com>
-------------------------------------------------------------



-------------------------------------------------------------

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-------------------------------------------------------------


<<inline: image001.jpg>>

Reply via email to