Most voted "infinite-cycle" questions
Loop/loop where output criteria are never met, performing a potentially infinite number of iterations.
Learn more…10 questions
Sort by count of
-
6
votes2
answers804
viewsWhy does this code loop infinity?
Because if I put an invalid entry like asdf the code below enters infinite loop? After capturing the exception and writing the message he should not ask for another entry again? import…
-
6
votes1
answer2747
viewsRaw Strength Algorithm for Sudoku Game Resolution in C
I have the following code written in C: #include <stdio.h> #include <stdlib.h> #include <time.h> // Variáveis globais int jogo_tabuleiro[9][9] = {0}; int func_quadrante(int…
-
5
votes1
answer4783
viewsHow do I make an infinite loop without bursting the memory?
I’m trying to make a program that requests on a DDE server, so I need to collect the data every 0.1 sec. But with each iteration of the program the computer memory increases and at the end for the…
-
2
votes1
answer127
viewsHow to avoid infinite loop in the function/call that reduces the font size?
I created this small extension of jQuery that aims to reduce the size of the text by setting font-size CSS based on the overflow of its container. The operation is simple, find the current font size…
-
1
votes1
answer291
viewsEndlessly map
I’m developing a game and I just found a difficulty somewhat boring, it’s a logic problem... Next: Imagine the scene of the game Where, the black square in which the "Player" is, is the camera view…
-
0
votes1
answer294
viewsInfinit Scroll - does not bring all BD data
I am trying to implement an Infinit scroll in my project, but I am having difficulty solving this problem the connection is perfect and I’m receiving the information from BD, but the code only shows…
-
-1
votes1
answer720
viewsSudoku game resolution giving infinite loop in C
I have the following code on C: #include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> // Variáveis globais int jogo_tabuleiro[9][9] = {0}; int…
-
-1
votes2
answers71
viewsThis code is leading me to an infinite cycle and I can’t figure out why
This code is leading me to an infinite cycle and I can’t figure out why. #include <stdio.h> #include <stdlib.h> #include <time.h> void troca (double *n1, double *n2) { double n; n…
-
-2
votes1
answer66
viewsStack overflow exception being generated in the instance method "Equals()"
I created a class called MyList<T>, with the intention of reproducing the class List, and I overwrote the method Equals to compare your instance with another of the same class, as follows:…
-
-5
votes1
answer583
viewsCancel loop/script in progress on server
Good morning, how to cancel an Infinite Loop in the Script that is already running on the server? It was a routine I created to trigger emails, but by carelessness it is in infinite loop and the…