Selon Geoff Air :

> Perhaps the author of this code could give us some
> of the reasoning of why this was added, under a
> _MSC_VER flag ...
>
> Maybe there is a way to 'explore' this in cvs,
> but I will need some help with the cvs commands to get
> at this 'historic' information ... like when was it added,
> by whom, and WHY ...
>
> This 'problem' needs a pure windows solution ;=)) Where
> are the MSVC WIN32 developers when you really need them?

Geoff,

don't search too far. There was not so many Win32 developers at that time, and
the number hasn't increased terribly since then. Here is a way to retrieve who
made what :
http://cvs.flightgear.org/cgi-bin/viewvc/viewvc.cgi/source/simgear/debug/logstream.hxx?annotate=1.9&root=SimGear-0.3

The 1.4 log text is :
This patch is for windows only. It hides the console window
until there is a message to print. It only support SG_LOG,
that I think is the right way to display something in FG.

At that time, I thought it was a good idea to hide the console when no logging
was required, to have a more 'professional' feeling, and hide this ugly black
window. For that, fg was linked as a 'windows' subsystem, in opposition to a
'console' subsystem. Under windows, the former kind of executable don't get a
console from the system, and if you happen to use the streaming C++ functions,
it will lock. In order to display log messages, you have to explicitely alloc a
console with the, guess that, AllocConsole win32 call.

Due to the number of people complaining that fg wouldn't start without realizing
there was a log system, I changed my mind and decided a console should be there
from the begining.

I've just commited a fix that doesn't realloc the console when there is already
one. Redirection works. Just remember that you must redirect the standard error
stream, with "2> mylogfile.txt" happend at the end of the command line

Regards,
-Fred

--
Frédéric Bouvier
http://frfoto.free.fr                      Photo gallery - album photo
http://www.fotolia.fr/p/2278/partner/2278  Other photo gallery
http://fgsd.sourceforge.net/               FlightGear Scenery Designer

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to