Zitat von Graeme Geldenhuys <[EMAIL PROTECTED]>:

> Hi Everybody,
>
> I have been battling with some code in tiOPF that causes problems when
> compiled with Delphi 2007, but not with Delphi 7 and FPC.
> After some head scratching, we found the problem.
>
> I use {$IFDEF DEBUG} quite often in my code, to hide things like
> writeln() statemens. I then have a commented DEBUG define at the top
> of the unit, so I can enable it per unit when required. That's just
> how I work...  ;-)
>
> Anyway in Delphi 2007 there are two compilable states, Release and
> Debug, with one of those terms automatically added to the options at
> compile time.  Debug mode is the default, which means the DEBUG define
> is ALWAYS defined - and what caused the problem! writeln() statements
> fail in a Windows GUI application because StdOut is not available.
>
> Just thought I might share this experience with you guys - to minimize
> future head scratching. ;-)

Will FPC do the same in Delphi mode?

Mattias

_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to