ReadProcessErrors (open)

Read any available data from the error stream

Syntax

LOADLIB "wh::os.whlib";

STRING FUNCTION ReadProcessErrors(INTEGER processid)

Parameters

INTEGER processid

Process to read errors from

Return value

STRING

Text received from the process error output

Description

If no data is available, an empty string is returned. In this case, the caller should be sure to check IsProcessRunning. This function should not be called inside a loop without using WaitForProcessOutput, as doing so can cause 100% CPU usage.