Whilst on the subject, I usually store application variables as
structures and was wondering how you correctly lock a reference to one
of those application variables. If you do this:

<cflock scope="application" type="readonly" timeout="5">
   <cfset database = application.database>
</cflock>

<cfquery datasource="#database.dsn#"...>
...
</cfquery>

are you effectively achieving nothing? Do you need to do this instead:

<cflock scope="application" type="readonly" timeout="5">
   <cfset database = structCopy(application.database)>
</cflock>


Thanks

-- 
Aidan Whitehall <mailto:[EMAIL PROTECTED]>
Macromedia ColdFusion Developer
Fairbanks Environmental Ltd  +44 (0)1695 51775
Queen's Awards Winner 2003 <http://www.fairbanks.co.uk/go/awards>

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to