Hi, all!
I've got a question about hiding console window in Windows.
I run Lazarus 1.4.4&1.6RC2 32 bit on Win7x64 and Debian Jessie 64&32 bit. I write a game Mazer in Castle Game Engine using Lazarus. And I have the following behavior: Together with main game window the console shows up in Win7 (as it seems to show up in any other Windows OS), but is hidden in Linux - I have to manually show Terminal output in Lazarus to see debug messages I send to the console.
The question is: how do I make the same thing on Windows systems? I need to see the Terminal only at development stage, but not in release without too many changes in the code.
There is a way to disable the console: by {$APPTYPE GUI} or the same option in Project>ProjectOptions>CompilerOptions>ConfigAndTarget>Win32GuiApplication checkbox. But it disables the console functionality completely - i.e. I get exception when trying to writeln debug messages to the console.
Or is the problem OS-specific and it is impossible to solve it in a simple&cross-platform way (only through something like {$IFDEF WIN32}{$IFDEF RELEASEMODE}(some OS-specific commands to 'hide' the console window){$ENDIF}{$ENDIF})?