Re: UDF question

2002-03-18 Thread junkMail
I don't get the first part of your reply. Are you saying that the Single Threaded Sessions setting on the server is a bad idea because of your browsing habits? I don't believe I've ever experienced a thread getting hung up and having to restart the browser. And what sort of a CF operation

Re: UDF question

2002-03-18 Thread junkMail
It's nice to hear someone else express this sentiment. (smile) Indeed, it doesn't make any sense. Multi-threaded applications are ubiquitous. Thousands of programmers have written code to properly manage access to shared memory resources. It's too bad none of them have worked for

Re: UDF question

2002-03-18 Thread junkMail
Gosh, I disagree completely with this. For me, having my code littered with irrelevant CFLOCKs is sloppy. I'm comfortable with requiring the server setting. It's a simple, clean, set-and-forget solution. Obviously, that's not going to work for everyone. If you can't enable Single Threaded

Re: UDF question

2002-03-18 Thread junkMail
With respect to this issue, comparing CFML to C++ is apples to oranges. I can't expect a low-level language to automatically manage concurrent access to shared memory resources, because I have defined the resources and I have decided how they are to be accessed and shared. I can't expect a

Re: UDF question

2002-03-18 Thread junkMail
Oh, so CFLOCK is a *feature*. Maybe you've taken off your Macromedia cap, but I can see a faint MM on your forehead. (smile-hope you don't mind the teasing, Mr. DeathClock sir. ;^) Seriously, providing the necessary internal concurrency control for getting and setting variables should be

Re: UDF question

2002-03-18 Thread junkMail
Why not add it to the Real men like to take the pain and do things the hard way thread? (smile) I did six years of development work on a product in roughly the same category as ColdFusion (albeit pre-Internet). The core was written in Assembler, extensions in C. It was heavy duty stuff and

Re: UDF question

2002-03-18 Thread junkMail
Nice post. I hadn't given much thought to the implications of a scoped lock preventing access to the entire scope--a very good argument in favor of implementing automatic internal locking, which would only need to lock the specific item being accessed. Gosh folks, this should be simple stuff

Re: UDF question

2002-03-17 Thread junkMail
Or enable Single Threaded Sessions in the CF Administrator. [EMAIL PROTECTED] - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, March 17, 2002 3:14 PM Subject: RE: UDF question Of course, you wan't to wrap the call to this UDF in

Re: UDF question

2002-03-17 Thread junkMail
I brought this option up in an earlier thread on this list and got a bit of a spanking. (smile) I run my main server with Single Threaded Sessions enabled, as well as Server and Application scopes set to Automatic read locking. I don't lock Session variables and I only lock writes for Server

Re: UDF question

2002-03-16 Thread junkMail
Try something like this... function BasketItemCount() { var totitems=0; for (i = 1; i lte session.basket.recordcount; i = i + 1) { totItems = totItems + session.basket.itemQty[i]; } return totitems; } Keith Meade [EMAIL PROTECTED] - Original Message - From: Howie Hamlin