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. ;-)

Regards,
 - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to