<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-02-21 10:18 GMT+01:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You can check the handle of the StdOutputHandle variable. if it is invalid (-1), you don't have output.<br>
</blockquote></div><br><br></div><div class="gmail_extra">Thanks for your reply, it helped a lot! StdOutputHandle is 24 when I start the program on the console, and 0 when it starts as a service. Which means, StdOutputHandle doesn't get initialized in service mode! I don't know why is this - the older runtimes didn't have this problem. It's present since 2.6.2.<br>
</div></div>