[thelist] Object can't be accessed without an active lock??

Kevin krr at ix.netcom.com
Mon Sep 3 13:43:32 CDT 2001


> Message: 9
> From: "Pete Freitag" <pf at cfdev.com>
> To: <thelist at lists.evolt.org>
> Subject: RE: [thelist] Object can't be accessed without an active lock??
> Date: Sat, 1 Sep 2001 18:32:59 -0400
> charset="iso-8859-1"
> Reply-To: thelist at lists.evolt.org
>
> Kevin,
>
> You need to use an Exclusive lock (type=exclusive) when you write... read
> only locks only lock read access... So when you have code like <cfset
> session.x=3> you need type="exclusive" when you just read the value,
> <cfoutput>#session.x#</cfoutput> then you need type="readonly"


I appreciate the insight. I found that I was missing the <cflock> and was
just
trying to figure out what the exact rules were for using it.

Your timing couldn't be better!

  Is there something written down somewhere that defines where and when to
  use the <cflock>. I looked around and couldn't find it. I am speaking for
the
  next developer that is looking for this information of course.

Thank You
Kevin











More information about the thelist mailing list