> > > Under GUI the stdin,stdout and stderr file handles are not used. > If you want to use writeln, define {$APPTYPE CONSOLE} Console is created by default. It is not because of writeln. I can write there any other statment and program will crash there.