RtProcess.WaitForExitCode Method
Waits for the thread that get's the exitcode from the Real-Time Process to finish. Unlike WaitForExit() this routine ensures that we've updated the ExitCode property before we return the routine.
IMPORTANT: Property ExitCode is not guaranteed to contain the exit code of the real-time process unless one of WaitForExitCode’s overloads is used. It is not sufficient to call RtProcess.WaitForExit and then read property ExitCode.
Namespace:
IntervalZero.MaxRT.wRTOS.RtApi.Diagnostics
Assembly:
IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.0.1)
Syntax
public int WaitForExitCode()
Return Value
Type: Int32
The ExitCode after it has been updated from the Realtime side.
Implements
IDiagnosticsRtProcess.WaitForExitCode.
Exceptions
| Exception | Condition |
|---|---|
|
TimeoutException |
This Execption is thrown if we've timed out waiting for the ExitCode to be updated. |
See Also: