At 03:15 AM 3/29/2006, you wrote:
Subject: Re: Breaking from infinite loop in CW 9.3 debugger
From: "Luc Le Blanc" <[EMAIL PROTECTED]>
Date: Tue, 28 Mar 2006 20:21:51 -0000
Ben Combee wrote:
> Set a breakpoint using the CW IDE in the code where you think you're
> looping. That should occur in the background, then the BP would be
> hit, stopping the loop.
I wish it were that simple. Actually, the loop does not always hang,
and it can require many iterations before there is an actual hang.
Often, execution comes out of it nicely, hence my search for a break
as would produce a shortcut.1. But can this shortcut break a loop
even if there is an input field? I suddenly have doubts about this.
Create a variable and increment it in your loop.
Set the breakpoint when the counter hits a number larger than you
consider reasonable, and one that indicates you are in an infinite loop.
Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/