Many thanks to Dave, Mark and Jonah for your replies.

To be honest, I wasn't very happy with my solution in the first place.  The
solution was to wait for a file to be thumb-nailed before deleting a
temporary file that had been uploaded.

I am using this as a substitute:

<cfset waitforthis =
"#application.webroot#file-store-user\#session.userID#.gif">
<cfloop condition="fileExists(waitforthis) eq 0">
</cfloop>

So I check for a new file to exist before deleting the upload.

>>-----Original Message-----
>>From: .jonah [mailto:[email protected]]
>>Sent: 11 December 2011 23:31
>>To: cf-talk
>>Subject: Re: Puzzling error
>>
>>
>>OR you could just use sleep()!
>>
>>Available since CF 8.
>>http://www.carehart.org/blog/client/index.cfm/2007/6/15/cf8_hidden_gem
>>_sleep_function
>>
>>Much better than spinning really fast in a loop.
>>
>>Cheers,
>>.jonah
>>
>>On 12/11/11 11:22 AM, Mark A. Kruger wrote:
>>> This looks odd to me. I think I would likely do
>>>
>>> You are asking conditional loop renderer to evaluate "gettickcount"
>>> over and over... a function call instead of a primitive.
>>>
>>> Usually I see something set - like "timeCounter" - inside of the loop
>>> for the next iteration... like so:
>>>
>>> <cfset delay = 10000>
>>> <cfset sTime = gettickcount() + delay/>
>>>
>>> <cfloop condition="gettickcount() lt sTime">
>>>     ...do something...then
>>>
>>>     <cfset sTime = sTime + (getTickcount()-sTime)/>
>>>
>>> </cfloop>
>>>
>>> Usually something inside the loop controls how to break out of the loop.
>>>
>>> What kind of error are you seeing?
>>>
>>> Mark Kruger - CFG
>>> CF Webtools
>>> www.cfwebtools.com
>>> www.coldfusionmuse.com
>>> O: 402.408.3733 x105
>>> E: [email protected]
>>> Skype: markakruger
>>>
>>> -----Original Message-----
>>> From: Jenny Gavin-Wear [mailto:[email protected]]
>>> Sent: Sunday, December 11, 2011 12:25 PM
>>> To: cf-talk
>>> Subject: Puzzling error
>>>
>>>
>>> I've been using the following for a longggg time and it's suddenly
>>> throwing a java error, any ideas anyone, please?
>>>
>>> <cfset delay = 10000>
>>> <cfset sTime = gettickcount()>
>>> <cfloop condition="gettickcount() lt sTime + delay"> </cfloop>
>>>
>>> TIA, Jenny
>>>
>>> --
>>> I am using the free version of SPAMfighter.
>>> We are a community of 7 million users fighting spam.
>>> SPAMfighter has removed 11612 of my spam emails to date.
>>> Get the free SPAMfighter here: http://www.spamfighter.com/len
>>>
>>> The Professional version does not have this message
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>~~~~~~~~~~~|
>>Order the Adobe Coldfusion Anthology now!
>>http://www.amazon.com/Adobe-Coldfusion-
>>Anthology/dp/1430272155/?tag=houseoffusion
>>Archive: http://www.houseoffusion.com/groups/cf-
>>talk/message.cfm/messageid:349054
>>Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
>>Unsubscribe: http://www.houseoffusion.com/groups/cf-
>>talk/unsubscribe.cfm
>>-----
>>No virus found in this message.
>>Checked by AVG - www.avg.com
>>Version: 2012.0.1873 / Virus Database: 2102/4673 - Release Date: 12/10/11
--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 11619 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349057
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to