Infinite loop

This is a discussion on Infinite loop within the Networking/Device Communication forums, part of the General Programming Boards category; this code works in UNIX, and im trying to convert it into a windows program. so anyways when i execute ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    215

    Infinite loop

    this code works in UNIX, and im trying to convert it into a windows program. so anyways when i execute the function

    void do_commands(FILE *input) it goes into an infinite loop.

    in the main program we call it like this

    Code:
    do_commands(stdin);
    and then it goes into an infinite loop, I dont understand why.

    the code is here in this site once again:

    http://sourcepost.sytes.net/sourcevi...ource_id=14723

    the function is on lines 00220: to 00390:

    a lot of it is documentation.

    also when it hits the never ending loop, it keeps outputing

    send() failed with error 10053.

    hope someone can help me.

  2. #2
    Registered User
    Join Date
    May 2004
    Posts
    215
    I got it to work. So nevermind

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 06-15-2009, 12:24 AM
  2. Cosine fucntion and infinite loop.
    By youareafever in forum C Programming
    Replies: 2
    Last Post: 11-07-2008, 04:45 AM
  3. Infinite Loop with GetAsyncKeyState
    By guitarist809 in forum Windows Programming
    Replies: 1
    Last Post: 04-18-2008, 01:09 PM
  4. Switch statement = infinite loop
    By Lucid003 in forum C++ Programming
    Replies: 10
    Last Post: 10-10-2005, 01:46 AM
  5. stays in loop, but it's not an infinite loop (C++)
    By Berticus in forum C++ Programming
    Replies: 8
    Last Post: 07-19-2005, 12:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21