On Sun, 9 May 2004, vs wrote:
> Hi, > > The following program gives run time error 103. If I uncomment the > rewrite line, it runs ok. Is this a bug or feature? If it is a feature, > can somebody explain, the reasoning behind it. > > program guiwriteln; > > {$mode objfpc}{$H+} > {$apptype gui} This is the culprit. For GUI apps standard/input/output are not initialized. Initializing them would create a console window, which is not what you want when running a GUI application. Michael. _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal