Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent, problem of Application.cfm

Status
Not open for further replies.

TC2000

Programmer
Dec 28, 2000
32
HK
Error Message :

An error has occurred while processing the expression:
application.lastMessage=CFTempOnlyForSetVariableNeverUseThisNameInYourCFMLCode122333444455555654321

Error near line 1, column 1.

Symbol application.lastMessage is in a scope that contains data shared across threads and cannot be accessed without an active lock

The error occurred while processing an element with a general identifier of (CFPARAM), occupying document position (13:1) to (13:57).


In Application.cfm,

eg <cfparam name=&quot;application.lastMessage&quot; default=&quot;Hello!&quot;>

I don't know why the variable become a long string and the system had worked properly before.

Please help me as this problem stop receving the message of emails.

 
HI TC2000

I'm not possitive what it going on there but it sounds like you're trying to access a session variable without a lock.

it should look something like this:

<CFLOCK TIMEOUT=&quot;60&quot; NAME=&quot;#Session.SessionID#&quot;>

Access Session Variables in here just like you would
have normally...

<cfparam name=&quot;application.lastMessage&quot; default=&quot;Hello!&quot;>

</CFLOCK>

I believe this changed around version 4 of CF so if you or your host just updated from an older version of CF it might have caused the problem to come up.

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top