-
Pipe handling
Hi,
I am running an application through a pipe. This applcation starts to record sound from the soundcard until I hit Enter.
To start the application I am using the following line:
Code:
_cmd_pipe = _popen(recordWaveCmd.c_str(),"r")
then I use
Code:
fputc('\n',_cmd_pipe);
to send a "\n" to stop recording.
However, when I use the command
Code:
_pclose(_cmd_pipe);
my main application stops until i hit the Escape key, and that's a problem.
Is there anyway to solve this problem?
Best regards,
Alex.
-
Why are you trying to write to something that's opened read-only?
-
Accualy that is not the problem, already tried with "w". The application pauses when the _pclose function is called. I have to hit a key to continue the execution of the main application.