0
votes
2answers
42 views

How to loop through an external file using an array and strtok PHP

I am getting an infinite loop. I believe that I am reading in the same line of input multiple times instead of going to the next line. From what I can come up with I need another piece of code just ...
0
votes
2answers
56 views

My loop not calling my function

I am new programming in Python. I am trying to create a function that simply takes the lowest payment (which starts at 10) and it simply returns the remaining balance (after 12 months of payments). ...
1
vote
1answer
135 views

Craps game: How do i get the while loop in this code from going into an infinite loop?

this are comments that explain the game so you can test it, but the main problem is when you are suppose to run the while loop if you a point value then it becomes an infinite loop. How do I get it to ...
0
votes
1answer
15 views

Python3 Passwords gives me a loop

while making a script i got some weird beheiviour form the python3 interpreter the bug is simply this i enter the right UserName and Password i am granted with an infinite loop that has no condition ...
0
votes
1answer
402 views

Loop will not reach sentinel value - Java

I have a while loop in my program that won't hit the sentinel value. The program basically reads in a database which includes a string, an int, and a double and then it loops back through. My problem ...
0
votes
1answer
217 views

Infinite while loop in java, not reading in sentinel

I've had this problem throughout multiple programs, but I can't remember how I fixed it last time. In the second while loop in my body, the second sentinel value is never read in for some reason. I've ...
0
votes
1answer
123 views

Endless loop problem $var gets not set or dont gets updated

I call that script via HTTP, will later done with php-cli. First video encoding i get the correct duration, and right data is entered in the db, but when script gets the second video all works, only ...
-1
votes
1answer
152 views

Recursion in a while loop in javascript

I try to output randomly some numbers from an array of possible values. The problem that I have is with the recursion, so that my function checking if the number generated randomly was already used ...
-1
votes
1answer
54 views

Can't figure out why this is causing an infinite loop

So I have this line of code where it keeps generating an infinite loop every now and then. Is my logic incorrect somewhere? The if statement inside of "if (randomNumbersForSelectionArray.Count > 0)" ...
1
vote
0answers
15 views

Infinite loop that reads stdin in JScript

I'm trying to create an infinite loop to poll for midi input. The loop I have here is technically infinite but I think what's happening is it's getting stuck on the WScript.StdIn.ReadLine() method. ...
0
votes
0answers
17 views

SimpleCV VideoStream not ending

I have VideoStream inside a while loop, I can manage to stop the loop, but somehow the VideoStream keeps the script to end, and I have to manually terminate the script, and the video is lost because ...
0
votes
0answers
42 views

Why do blocking functions not use 100% CPU?

Sure, the while loop over the function call blocks inside your app's scope, but something outside still has to be looping right? Does it finally lead up to some hardware blocking event? How else can ...
0
votes
0answers
183 views

Code to automatically offset active cell to/from first active cell & offset by one each time

I have data in an excel spreadsheet in rows (addresses) which needs to be converted to one column. The address portion of the code needs to be manipulated so city, state & zip are on the same ...
0
votes
0answers
22 views

Inifnite While Loop Trouble

I'm writing a code that requires using the GS method on matlab. However, I'm running into an inifinite loop. This is the important part of the code where I'm facing trouble: while (dx2 >= 0.001) ...