| What kind of weird things are you seeing? It seems like the cursor for a cfoutput gets confused over simultaneous requests, so that a simple cfloop or cfoutput over the query does not work properly.
I have an extremely simple/stripped down testcase here: http://ftp.grida.no/hugo/testcase.zip (run this and open some 5-8 windows/tabs in a browser simultaneously and compare the results) Or you can test the same thing live here: http://dev.maps.grida.no/testcase14/testcase.cfm (look at the lower left bar with the list of latest graphics, do the same routine with it) Perhaps this test case can be simplified even more, to just storing the query in the application scope (and skip the object). It is not so complicated actually, and the conclusion pretty obvious -- best practice should be to duplicate() and not use a reference (for query variables), since the loop cursor still sticks with the single application-wide reference to the variable. To reduce coupling, any variables stored in a singleton local scope probably should be duplicated anyway - things calling an object shouldn't care or know about how things are cached/stored and they don't know if things are read-only or not. (and they shouldn't care if it is a reference or a duplicated var, at least for non-object variables) -- Hugo Ahlenius ------------------------------------------------------------- Hugo Ahlenius E-Mail: [EMAIL PROTECTED] Project Officer Phone: +46 8 412 1427 UNEP GRID-Arendal Fax: +46 8 723 0348 Stockholm Office Mobile: +46 733 467111 WWW: http://www.grida.no Skype: callto:fraxxinus ------------------------------------------------------------- ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/ ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
