Announcement

Collapse
No announcement yet.

Bug on FOR instruction

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bug on FOR instruction

    Hi

    I was working with code and I figured out there is a bug of FOR instruction.

    I had a For sentence that was working perfect. I was working part of code that it is not relate with "For sentence code" and after compile the For became a infinite loop.

    Somebody knows if there is a bug?

    Jordi

  • #2
    Can you show us a short example of the bug?

    Are you sure you haven't altered the for variable inside the for 'loop'? That's the easiest way to get an infinite loop
    Mark

    Comment


    • #3
      Hi

      It is not easy to give you example because this bug is random.
      When your code is growing then happens. I solved changing For sentence for While loop using the same counter variable.

      This bug is not the first time that happens to me.
      Jordi

      Comment


      • #4
        You could also get it hitting an out of bounds array element
        Mark

        Comment

        Working...
        X