×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Timeout on stdin input from function called in QuickWatch window

Timeout on stdin input from function called in QuickWatch window

Timeout on stdin input from function called in QuickWatch window

(OP)
I am maintaining a console app under Visual C++ Code Name Orcas.  I have debugging functions in the app that I call from the QuickWatch window.  Some of those functions do I/O to/from stdin/stderr.  MSVC++ has a timeout on input from stdin on the order of 10-20 seconds, after which control reverts from the console window back to the watch window dialog box.  (It also occurs under VC++ 6.0.)  This is extremely annoying; I often want to interact with the debugging function for an extended period.  Is there any way to either eliminate or at least extend the timeout period?  I have searched high and low for information on this; VS help has nothing, nor does MSDN.  Thanks!

RE: Timeout on stdin input from function called in QuickWatch window

Haven't heard of this one before.  How exactly do you input from stdin?  Is it

gets
getch
<< cin
ReadFile
ReadConsole
scanf

or some other technique?

RE: Timeout on stdin input from function called in QuickWatch window

(OP)
Usually fgets().

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close