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

