RE: locking sessions in 4.0 and 4.5 compatible way

2001-05-04 Thread Chris Norloff

-- Original Message --
From: Dave Watts [EMAIL PROTECTED]
If you enable Automatic Read Locking in CF 4.5.x, it'll insist that any
write to a memory variable be locked using a scoped lock. Your only
solution, for compatibility across 4.0.x and 4.5.x, is to disable Automatic
Read Locking.


Hmmm ... we're transitioning from CF 4.0 to 4.5 and have all our locks scoped with the 
old name=session.sessionid  name=application.applicationname method.  They work 
okay under 4.5, and pass with Automatic Read Locking turned on.

They do not work with Full Checking turned on, which insists that locks use the scope 
attribute and not the name attribute.

best,
Chris Norloff

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: locking sessions in 4.0 and 4.5 compatible way

2001-05-04 Thread Dave Watts

 Hmmm ... we're transitioning from CF 4.0 to 4.5 and have all 
 our locks scoped with the old name=session.sessionid  
 name=application.applicationname method.  They work okay 
 under 4.5, and pass with Automatic Read Locking turned on.
 
 They do not work with Full Checking turned on, which insists 
 that locks use the scope attribute and not the name attribute.

What version of 4.5.1 are you using? I tested this with SP2, I think, but I
could certainly be wrong.

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

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: locking sessions in 4.0 and 4.5 compatible way

2001-05-02 Thread Dave Watts

 I really did search for this, but didn't find an answer. I'm 
 moving from CF 4 to 4.5, and have turned on Automatic Read 
 Locking in all scopes. Now I'm going through to see what's 
 broken as a result. Note that I'm trying to maintain 
 compatibility with 4.0 as much as possible.
 
 Is there any way to make CF understand that the first lock is 
 protecting that session scope?

If you enable Automatic Read Locking in CF 4.5.x, it'll insist that any
write to a memory variable be locked using a scoped lock. Your only
solution, for compatibility across 4.0.x and 4.5.x, is to disable Automatic
Read 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

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists