<br><br><div class="gmail_quote">2009/4/17 Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:rem@videolan.org">rem@videolan.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Le vendredi 17 avril 2009, basos g a écrit :<br>
<div class="im">>  It is used for optional console logging on windows to<br>
>  debug early loading problems<br>
<br>
</div>I don't seen much use to this. Since this is platform-specific, the<br>
caller needs to know that it is running Windows. Then it might as well<br>
call ShowConsole() directly, no?<br>
<font color="#888888"><br>
--<br>
</font></blockquote><div><br>Use case :<br><br>I wouldn't make a clue about a printf %zu platform specific bug that is caused by the latest *printf re0rganizing and caused a silent crash (that's another case though), if i didn't see the logs to the win console.<br>
Of course it's a platform specific solution, but please keep in mind that windows does not relate a console to a running program by default (e.g. when run from command line) and when it does expliciltly (using ShowConsole() for example) is spits out another annoying window that , of course , is not to be enabled by defualt. <br>
On the other hand this option is usefull to debug early initialization bugs when no other means to see the debug (apart from the console) exists.<br>So, its a windows only, used for debug purposes, advanced command line option.  <br>
</div></div>