Hi guys,

I think I'm getting a corrupt application scope problem.
The CF error is:
--------
The element at position 3 cannot be found. LINE 411
--------
LINE 411 is:
--------
#application.rews.timePeriods[X].name# (it's in a loop so X would have
been equal to 3).
--------
Application.cfm code:
--------
        application.rews.locale                                         = 
"en_US";
        application.rews.timePeriods                            = ArrayNew(1);
        application.rews.timePeriods[1]                         = StructNew();
        application.rews.timePeriods[1].name            = "00:00-06:00";
        application.rews.timePeriods[1].period.low      = "00:00";
        application.rews.timePeriods[1].period.high = "06:00";
        application.rews.timePeriods[2]                         = StructNew();
        application.rews.timePeriods[2].name            = "06:00-08:00";
        application.rews.timePeriods[2].period.low      = "06:00";
        application.rews.timePeriods[2].period.high = "08:00";
        application.rews.timePeriods[3]                         = StructNew();
        application.rews.timePeriods[3].name            = "08:00-10:00";
        application.rews.timePeriods[3].period.low      = "08:00";
        application.rews.timePeriods[3].period.high = "10:00";
        application.rews.timePeriods[4]                         = StructNew();
        application.rews.timePeriods[4].name            = "10:00-13:00";
        application.rews.timePeriods[4].period.low      = "10:00";
        application.rews.timePeriods[4].period.high = "13:00";
        application.rews.timePeriods[5]                         = StructNew();
        application.rews.timePeriods[5].name            = "13:00-17:00";
        application.rews.timePeriods[5].period.low      = "13:00";
        application.rews.timePeriods[5].period.high = "17:00";
        application.rews.timePeriods[6]                         = StructNew();
        application.rews.timePeriods[6].name            = "17:00-21:00";
        application.rews.timePeriods[6].period.low      = "17:00";
        application.rews.timePeriods[6].period.high = "21:00";
        application.rews.timePeriods[7]                         = StructNew();
        application.rews.timePeriods[7].name            = "21:00-24:00";
        application.rews.timePeriods[7].period.low      = "21:00";
        application.rews.timePeriods[7].period.high = "23:59";

        application.rews.timePeriodsDefault.departOption  = 3;
        application.rews.timePeriodsDefault.returnOption  = 6;
        application.rews.paxMax                                         = 9;
--------

I've just read this article
(http://www.adobe.com/devnet/server_archive/articles/cf_locking_best_p...)
on locking read/write to application scoop, however the article seems
old, is this still relevant? Note: the project I'm working on does not
use application.cfc.

Do I need to put application scope locking in place? There are 2650
refernece to this scope throughout the website!

Perhaps it's not a locking issue, can anyone see any probs with the
code?

Cheers 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261077
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to