Oh yeah...

If CFC method variables aren't var'd they are in the scope of the
instance of the CFC itself, and can cause the CFC to be non-thread
safe!

So var your method scope variables!

Mark

On 5/30/05, Peter H <[EMAIL PROTECTED]> wrote:
> 
> Hi guys, 
>   
> I bumped into the following article online relating to use of cfhttp and
> components. 
>   
> http://weblogs.macromedia.com/cantrell/archives/2005/04/dont_forget_to.cfm
>   
> It basically states that you when using cfhttp in a componet you should use
> <cfset var cfhttp.fileContent = 0/> to avoid concurreny issues. 
>   
> My question is this. Is cfhttp a special case? Or should I be var-ing all
> method variables. (I really hope not or I have a lot of code to re-write!) 
>   
> Cheers, Pete (aka lad4bear)

-- 
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to