Thank you Isaac, you're absolutely right.  Just to clarify, I should
have added "NOT" before both structKeyExists() calls.  First time I've
gotten to go play in the sun all day since last summer (it was almost
60 degrees!), and it apparently fried my brain.

cheers,
barneyb

On Sun, 13 Mar 2005 01:02:01 -0500, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> > What you need is something like this protecting your
> > initialization:
> 
> > <cfif structKeyExists(application, "initialized")>
> > <cflock scope="application" type="exclusive" timeout="1">
> > <cfif structKeyExists(application, "initialized")>
> >   <!--- all app initialization --->
> >   <cfset application.initialized = true />
> > </cfif>
> > </cflock>
> > </cfif>
> 
> I think you may have inadvertently mangled the example... This example
> code will never result in an initialized application, since it will
> only execute if application.initalized has been set -- which won't
> happen until it executes -- which only happens if
> application.initialized is set -- which wont happen until ... oh
> nevermind... :P
> 
> s. isaac dealey     954.522.6080
> new epoch : isn't it time for a change?
> 
> add features without fixtures with
> the onTap open source framework


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198589
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to