On Thu, Dec 23, 2010 at 9:16 AM, Matthew Reinbold
<[email protected]> wrote:
> I know that correctly scoping variables in ColdFusion is important to prevent 
> unexpected results if a variable is "accidentally" reused elsewhere in a CFC. 
> But, if I remember correctly, in CFMX there were some pretty nasty memory 
> leaks that could occur if variables weren't scoped correctly.

Hmm, it wasn't related to memory leaks so much as thread safety -
which applies to all versions of all CFML engines when you're using
CFCs stored in scopes that are shared between multiple requests and
it's much the same problem you have sharing data between requests
anyway (it's just easier to trip over with the implicit, shared,
VARIABLES scope in CFCs).
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340258
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to