Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

StdErr property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.0

property StdErr: THandle;


This property is used to optionally redirect a console application’s standard error output.

If StdErr is set to 0 no redirection takes place.

Setting the property to a valid inheritable handles causes all output that the console application writes to standard error to actually be written to the specified handle.

The default property value is 0.


When redirecting, the output handle can be attached to any object that is open for writing. Normally this will be a file or a pipe.

The I/O Utility Classes library project has classes that are designed to help with opening pipes and files with inheritable handles.

The property is public in TPJConsoleApp and protected in TPJCustomConsoleApp.