2014-02-21 10:18 GMT+01:00 Michael Van Canneyt <mich...@freepascal.org>:

> You can check the handle of the StdOutputHandle variable. if it is invalid
> (-1), you don't have output.
>


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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to