Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timeout on stdin input from function called in QuickWatch window

Status
Not open for further replies.

XTRANguru

Programmer
Dec 30, 2007
2
US
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!
 
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top