Results 1 to 3 of 3

Thread: Is it possible to terminate an infinite loop?

  1. #1
    Join Date
    Apr 2008
    Posts
    139

    Is it possible to terminate an infinite loop?

    Is it possible to terminate an infinite loop?

    Please let me know if its possible.

  2. #2
    Join Date
    May 2009
    Posts
    38

    Re: Is it possible to terminate an infinite loop?

    It comes from its name: it doesn't terminate, the user have to interrupt the program-run (in the worst case: power off the computer).

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Is it possible to terminate an infinite loop?

    There is no other way but the old Ctrl+Alt+Del (or in Windows use the Task Manager and kill the process). You just have to learn not to code infinite loops without providing a way to exit the loop when some condition is met. You can use the "break" statement to exit the loop early.

Similar Threads

  1. Infinite Loop Fix moniter issue
    By Romany in forum Monitor & Video Cards
    Replies: 5
    Last Post: 02-04-2010, 10:39 AM
  2. Infinite loop in bash
    By Maya Angelou in forum Software Development
    Replies: 5
    Last Post: 30-03-2010, 01:51 PM
  3. Problem of infinite loop in C
    By Firon in forum Software Development
    Replies: 4
    Last Post: 11-05-2009, 06:12 PM
  4. 4870x2 Freezes in Infinite loop
    By BARAK in forum Monitor & Video Cards
    Replies: 4
    Last Post: 20-04-2009, 10:02 PM
  5. nv4_disp infinite loop error
    By Khushal in forum Hardware Peripherals
    Replies: 2
    Last Post: 29-07-2008, 02:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,471,088.28057 seconds with 16 queries