I had something sort of similiar - the random error part at least.  It was due 
to NOT locking the application scope when changing / creating an application 
variable.  That might help.  The reason it was random for me was that it was a 
racing issue.  Hope that helps...

>Hello List People,
>
>I'm having trouble figuring this one out and hope some one can point me in 
>the right direction.
>
>We have a form processing script, that appears to generate some errors when 
>under load - or rather when multiple forms are submitted within the same 
>time frame.
>
>Basically we have a formHandler.cfm script that handles submission from 
>multiple,different forms. The forms are processed based on description of 
>the form looked up in the database (ie. fields, required, formatting etc). 
>And the processing is done through a series of CFC's that are instantiated 
>and stored in the application scope.
>
>Two problems occur. Occasionally, an error will be generated in the CFC 
>that does the DB insert (insertFormSubmission.cfc), and the error indicates 
>that the info about the form (that was retrieved when from  the DB when the 
>form was submitted via the formID in a hidden field), is for the wrong 
>form! 99.5 times out of a 100 this does not happen, it can't be easily 
>reproduced. But over the course of the day it will happen several times. I 
>have gone through the CFC's and made sure all local vars are defined as 
>local vars and that does not seem to have helped. Where is the collison 
>occuring?
 [SNIPPED]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242007
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to