********************** Macromedia Representative **********************
Don't forget that if the var is an array of simple values, your ok, but if
it is an array of structures, you should Duplicate() it. Also, if you are
copying a query from the app scope, you should also duplicate() it.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Ben Forta [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 30, 2001 7:10 PM
> To: CF-Talk
> Subject: RE: More locking confusion...
>
>
> Jon,
>
> Yes, and no. Regular variables are copied, structures are copied as you
> stated. So, you can use <CFSET REQUEST.var=APPLCIATION.var> as long as var
> is a simple variable, but if APPLICATION.var is a structure you'll need to
> do a deep copy.
>
> --- Ben
>
>
> -----Original Message-----
> From: Jon Hall [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 6:49 PM
> To: CF-Talk
> Subject: More locking confusion...
>
>
> Ok I got the devcenter mailinglist today like a lot of us, and I was
> checking out the article titled ColdFusion Methodologies for Content
> Management at http://www.allaire.com/handlers/index.cfm?ID=20750.
>
> The author writes:
> "An easy answer to this problem is to dump the entire SESSION or
> APPLICATION
> scope into the REQUEST scope. ColdFusion does not 'share' the
> REQUEST scope
> between threads and it does not need to be locked. So by dumping all the
> shared variables to this scope, we can lock our variables once and then
> forget about it."
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists