> In that case, do this (assuming you're using CF4.5):
>
> <cflock scope="application">
> <cfset request.application = Duplicate(application)>
> </cflock>

Warning! Duplicate function is broken in CF 4.5.1 SP2! Allaire says it's
broken in CF for NT and Solaris and offers fix for Enterprise NT and
Enterprise Solaris (KB article #19107), but I tried the code snippet below
on CF 4.5.1 SP2 Pro Linux and CF 4.5.1 SP2 Pro NT and they're both broken
too. Allaire should give Pro version users this fix too, not just
Enterpise edition and Spectra users.

This snippet by Raymond Camden on Specra-Talk list:
<CFSET A = StructNew()>
<CFSET A.Lower = ArrayNew(1)>
<CFSET A.Lower[1] = StructNew()>
<CFSET B = Duplicate(A)>
<CFSET A.Lower[1].Test = "Original Text, your ok">
<CFSET B.Lower[1].Test = "oops, your not ok">
<CFOUTPUT>#A.Lower[1].Test#</CFOUTPUT>

If you get "oops, your not ok" then your version of CF has broken
Duplicate() function.


Erki


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to