Home » U++ Library support » U++ Core » StdLogSetup breaks ReadStdIn
StdLogSetup breaks ReadStdIn [message #40678] |
Sun, 01 September 2013 17:30  |
|
Hi everyone,
I came to weird and unexpected side effect of call to StdLogSetup(). Consider this code:
CONSOLE_APP_MAIN{
StdLogSetup(LOG_FILE);
String ln = ReadStdIn();
DUMP(ln);
}
If you comment out the StdLogSetup call, it works as expected. But with the setup (which in this case should effectively do nothing, logging to file is default) the app exits right away, without waiting for input from standard input and the DUMP prints empty string.
It seems to me as if the StdLogSetup sets input to be non-blocking. Am I doing something wrong? Or is there some other way to make it work again?
Best regards,
Honza
|
|
|
|
|
Goto Forum:
Current Time: Sun Apr 27 21:07:19 CEST 2025
Total time taken to generate the page: 0.00749 seconds
|