> Lastly, can anybody offer or point me to some resources that provide good 
> solid guidelines to follow when writing a CFC that is to be utilized as a 
> Singleton?

The only time I have run into problems when using scenario A (no lock) is 
when I neglected to var scope all variables within the getResults function. 
This is where you get undesired "crossover" of values.  As long as you var 
scope everything (and that includes *everything* down to loop indices), you 
shouldn't need a lock at all.

-- Josh 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308909
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to