> this is a bit off-list, but the Forums gave contradictory
> answers and I have a very strong feeling that readers of this
> will have the answer to this. Does anyone know if you need
> to CFLOCK an IsDefined() on a session, application or server
> scope var?
>
> Seems to me there may be no read of the data occuring but I
> also suppose it is possible that someone may be either re-creating
> or destroying the var at the same time you are testing for its
> existence.
>
> In particular, do things like:
>
> <cfif Isdefined("application.initialized")>
>
> need to be cflocked?
According to Sim Simeonov, one of the chief guys behind the CF server
engine, "IsDefined() cannot be used on shared variables without locking!"
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.