On Apr 8, 2005 10:30 AM, Ali Awan <[EMAIL PROTECTED]> wrote: > Taking Sean's and John's advice I got rid of my prefuseaction in the > controller circuit, and instead use a globalfuseaction to initialize. Here's > the updated code:
Close. Your lock is in the wrong place for thread safety. Remember that it's if-lock-if - you have if-if-lock. Your second fuseaction should have the lock surrounding the if, not inside it. > <fuseaction name="setupCFC" access="private"> > <if condition="NOT > StructKeyExists(application,'appInitialized')"> > <true> > <aa.lock mode="start" type="exclusive" > scope="application" /> > <instantiate > object="application.statesManager" > > class="States" > > arguments="request.DSN1"/> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase RoboHelp from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=59 Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6717 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
