Top "Infinite-loop" questions

An "infinite loop" is a loop in which the exit criteria are never satisfied; such a loop would perform a potentially infinite number of iterations of the loop body.

'while' statement cannot complete without throwing an exception - Android

With this method I'm updating TextView every second. private void UpdatingTime(final String endTime, final long diffInDays) { new Thread(new …

java android while-loop infinite-loop
Spring Boot - infinite loop service

I want to build a headless application which will query the DB in infinite loop and perform some operations in …

java service spring-boot infinite-loop headless
How to unit test a method that runs into an infinite loop for some input?

This question just occurred to my mind and I want to ask this here. The case is intentional, I just …

unit-testing junit tdd nunit infinite-loop
HAL_Delay() stuck in a infinite loop

I am stuck with HAL_Delay() function. When i call this function HAL_Delay() , control stuck in infinite loop. While …

c linker infinite-loop stm32 hal
SQL Server Trigger loop

I would like to know if there is anyway I can add a trigger on two tables that will replicate …

sql-server sql-server-2000 triggers infinite-loop
Laravel 5 redirect loop error

I trying to make a login and admin script, the problem is that I have a redirect loop I dont …

php redirect laravel-5 infinite-loop middleware
My cin is being ignored inside a while loop

I am trying to code a simple question and number checker into my first C++ program. Problem is, when I …

c++ while-loop infinite-loop cin
How to interrupt an Infinite Loop

Though I know it'll be a bit silly to ask, still I want to inquire more about the technical perspective …

java loops infinite-loop
Android : Implementation of two way Endless Viewpager

What I want: I have been trying to implement two directional Endless viewpager in Android, Left to Right & Right …

android android-viewpager adapter infinite-loop two-way
Scala while(true) type mismatch? Infinite loop in scala?

Why following code def doSomething() = "Something" var availableRetries: Int = 10 def process(): String = { while (true) { availableRetries -= 1 try { return doSomething() } catch { …

scala loops infinite-loop