Re: Calculations in a loop
- From: Patricia Shanahan <pats@xxxxxxx>
- Date: Wed, 19 May 2010 16:51:45 -0700
Dann Corbit wrote:
In article <c90e4442-455f-4ca9-b9fb-e20c04c09b40
@z15g2000prh.googlegroups.com>, ameliajane42@xxxxxxxxx says...
On May 19, 1:01 pm, Patricia Shanahan <p...@xxxxxxx> wrote:stan wrote:It was a real dumb problem. The variable in the loop was incremented
...
I agree with the others as to possible causes, but I might addGood advice. The OP needs to be particularly careful to debug a version
that this may be a perfect time to learn to step through code in a
debugger. You might discover the problem with your code and you will
certainly learn a skill which can be very handy. It won't be time
wasted. Debuggers are not a silver bullet, they can't solve every
problem all the time. But when you fine yourself stumped you can never
have too many tools available.
that actually fails, not a similar program that works.
Patricia
elsewhere making the loop to end prematurely. My bad...
This is why it is a good idea to post the actual code that reproduces the problem.
Often the original code is too big and complicated to post. Producing a
simplified example is very useful. However, it is essential to check
that the simplified code reproduces the original problem. If not, the
implication is that the problem involves something that was removed
during simplification, an important debug clue.
Patricia
.
- Follow-Ups:
- Re: Calculations in a loop
- From: bart.c
- Re: Calculations in a loop
- References:
- Calculations in a loop
- From: amelia jane
- Re: Calculations in a loop
- From: pete
- Re: Calculations in a loop
- From: amelia jane
- Re: Calculations in a loop
- From: Patricia Shanahan
- Re: Calculations in a loop
- From: stan
- Re: Calculations in a loop
- From: Patricia Shanahan
- Re: Calculations in a loop
- From: amelia jane
- Re: Calculations in a loop
- From: Dann Corbit
- Calculations in a loop
- Prev by Date: Re: Calculations in a loop
- Next by Date: Re: Calculations in a loop
- Previous by thread: Re: Calculations in a loop
- Next by thread: Re: Calculations in a loop
- Index(es):
Relevant Pages
|