> From: Sandra Clark [mailto:[EMAIL PROTECTED]] > Sent: 24 February 2001 00:00 > To: Fusebox > Subject: RE: cflocation, addtoken = yes||no <snip> > Also be careful with storing the results of recordsets in > Session variables > and trying to use Duplicate() to a Request scope. > It caused my CF server 4.5.1 to bomb. Aside from whether you should be using session variables or not, there was a problem with the Duplicate function in 4.5.1 sp2, which could have caused this. from allaire site: Allaire has identified a problem with the Duplicate Function not working correctly in ColdFusion 4.5.1 SP2 for NT and Solaris, and has provided a Hot Fix for ColdFusion 4.5.1 Enterprise Version through this article. Although this issue occurs in ColdFusion 4.5.1 SP2 only, Spectra customers will be affected since the Duplicate() function fails to make a copy of structures contained in arrays. http://www.allaire.com/Handlers/index.cfm?ID=19107&Method=Full This code (by Dave Watts i think...) will let you know if you're affected: <CFSET A = StructNew()> <CFSET A.Lower = ArrayNew(1)> <CFSET A.Lower[1] = StructNew()> <CFSET B = Duplicate(A)> <CFSET A.Lower[1].Test = "Original text - duplicate() is OK"> <CFSET B.Lower[1].Test = "oops, looks like duplicate() function has gone wierd"> <CFOUTPUT>#A.Lower[1].Test#</CFOUTPUT> Cheers Bert ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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
