Try this:

<cfset x = gettickcount()>
<cfloop from=1 to=10000000 index="variable.counter">
        <cfset y = gettickcount()>
        <cfif ((y - x) GT 10000)>
                <!--- Inside a Tag you can use cfexit --->
                <cfabort showerror="#variable.counter#">
        </cfif>
</cfloop>


Cheers,
Duane Boudreau,
Project/Beta Manager, eMPower
Director, Web Technologies
Ektron, Inc.
http://www.ektron.com
5 Northern Blvd, Suite 6
Amherst, NH 03031
Tel: 603-594-0249
Fax: 603-594-0258


> -----Original Message-----
> From: Lon Lentz [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 19, 2000 9:48 AM
> To: [EMAIL PROTECTED]
> Subject: RE: How to stop an infinite CF loop?
> 
> 
> 
>    Actually, this was the first time this has happened with this tag. We
> renamed the tag and solved the problem. I'm just looking for a 
> possible way
> of stopping a similar situation in the future.
> 
> 
> Lon Lentz
> Applications Developer - GetLists.Com
> DataWarehousing and List Sales - Market your lists on the Net!
> [EMAIL PROTECTED]
> 941-541-9000 Ext. 210
> 
> -----Original Message-----
> From: Fred T. Sanders [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 19, 2000 4:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to stop an infinite CF loop?
> 
> 
> have you isolated the tag? If so why not just fix it.
> 
> 
> ------------------------------------------------------------------
> ------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> _talk or send a message to [EMAIL PROTECTED] with 
> 'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to