Can someone show me an example? Cause im trying to find an infinite loop i made in my coding because its not allowing me to host my game.. it freezes Dream Daemon
An infinite loop runtime is usually caused by something that, obviously, loops indefinitely. For example:
BEGIN // code here goto BEGIN
Usually it's a common misuse of goto that causes most loops. Try to locate the segment of code that the runtime tells you is causing the loop, and tell us.
An infinite loop is something which continues without end. The above loop has no means of exiting and will thus frackin explode the program. If a proc keeps calling itself that could also be an infinite loop. Those would be the basic examples.
Well, yes. A safer alternative to loop things would be to use the universal for(var/i=0,i++,i<=loopval) or while(stuff). I don't see how using goto is necessarily a mistake itself though.
Usually it's a common misuse of goto that causes most loops. Try to locate the segment of code that the runtime tells you is causing the loop, and tell us.