Any other CFAPPLICATION tags that might be using another application name?  

When we had vanishing variables, the biggest problem was using auto-read locking: it 
doesn't throw errors for all unlocked writes like the documentation says.

Also, look closely at all application variables - if you're doing ANYTHING with them 
then it's probably a read or a write and has to be locked (or move them into the 
request scope and use them there).

good luck,
Chris Norloff

>> -----Original Message-----
>> From: Stuart Miller [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, June 21, 2001 11:09 AM
>> To: CF-Talk
>> Subject: Mysteriously vanishing application variables
>>
>>
>> Hello,
>>
>> I have an application that seems to mysteriously lose it's application
>> variables and then throws the 'parameter cannot be resolved' error.
>> Shouldn't be due to timing out because the problem will pop up in
>> the middle
>> of a session. Anyway, there is code that checks for
>> IsDefined(APPLICATION.GlobalsDefined) and sets them if not. When
>> the page is
>> refreshed, the application variables are back. The problem only occurs
>> rarely and seemingly at random. I know that doesn't help, but I'm
>> stumped....
>>
>> Here's the code:
>>
>> <!--- Application Declaration --->
>> <cfapplication name="SomeApplication"
>>                clientmanagement="Yes"
>>                setclientcookies="No"
>>                applicationtimeout="#CreateTimeSpan( 0, 1, 0, 0 )#"
>>                clientstorage="ClientVars">
>>
>> <cfparam name="InitGlobals" default=0>
>>
>> <!--- If Application variables don't exist --->
>> <cfif NOT IsDefined( "APPLICATION.GlobalsDefined" )>
>>      <!--- Force a re-initialisation --->
>>      <Cfset InitGlobals = 1>
>> </cfif>
>>
>> <!--- If we need to initialise variables --->
>> <cfif InitGlobals>
>>
>>      <!--- prevent multiple memory access --->
>>      <cflock timeout="10"
>>                       throwontimeout="Yes"
>>                       name="STOAT_APP_GLOBALS"
>>                       type="EXCLUSIVE">
>>
>>              <!--- Clear out existing app variables --->
>>              <cfscript>
>>                      StructClear( APPLICATION );
>>              </cfscript>
>>
>>              <cfset APPLICATION.SomeApplicationVars = "SomeValues">
>>
>>              <cfset APPLICATION.GlobalsDefined = 1>
>>
>>      </cflock>
>>
>> </cfif>
>>
>> Anyone else have this happen to them?
>>
>> Thanks in advance.
>>
>> --Stuart
>>
>>
>> Stuart Miller
>> Rocom New Media
>> t: 01937 487492
>> e: [EMAIL PROTECTED]
>> w: http://www.rocom.co.uk
>>
>>
>>
>> Archives: http://www.mail-archive.com/[email protected]/
>> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to