A few CFLOCK questions:
1) Should calls to CFOBJECT be locked? Does it (as I suspect) depend on
the particular type of object, and if so, do I need to lock
CLASS="Word.Application", and how would I know in general which classes
need to be locked?
2) Someone (I think Michael Dinowitz) once recommended: "use CFLOCK on all
direct network calls (CFHTTP, CFFTP, etc. NOT CFMAIL)." Does this include
CFFILE? How about CFDIRECTORY?
3) And someone else (I think Michael Sheldon) once said:
>...there is still a very good reason to CFLOCK a CFLOCATION.
>Any time the page you are transferring to depends on a value being set in
>the originating page, CFLOCK is almost mandatory. Otherwise, the
>multi-threading nature of CF may perform the CFLOCATION *before* the
>variables are set or a query is complete, which could *royally* hose the
>next page. Granted, this is usually only a major problem when network
>latency is extremely low (local LAN), but I have seen it enough times to
>know it is a very subtle GOTCHA.
I don't understand this at all. If I have:
File1.cfm:
<CFLOCK TIMEOUT="60" SCOPE="SESSION" TYPE="Exclusive">
<cfset session.name = "greg">
</CFLOCK>
<cflocation url="file2.cfm">
File2.cfm:
<CFLOCK TIMEOUT="60" SCOPE="SESSION" TYPE="ReadOnly">
<cfoutput>name=#session.name#</cfoutput>
</CFLOCK>
How can the CFLOCATION be performed BEFORE the <cfset session.name =
"greg"> is executed? What would the lock around cflocation look like, and
how would it prevent the problem?
Gregory M. Saunders, Ph.D.
Senior Design Architect
Cognitive Arts Corporation (http://www.cognitivearts.com)
120 S. Riverside Plaza, Suite 1520
Chicago, IL 60606
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.