[vlc-devel] ADD libvlc winconsole switch

basos g noxelia at gmail.com
Fri Apr 17 10:14:12 CEST 2009


2009/4/17 Rémi Denis-Courmont <rem at videolan.org>

> Le vendredi 17 avril 2009, basos g a écrit :
> >  It is used for optional console logging on windows to
> >  debug early loading problems
>
> I don't seen much use to this. Since this is platform-specific, the
> caller needs to know that it is running Windows. Then it might as well
> call ShowConsole() directly, no?
>
> --
>

Use case :

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.
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.
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.
So, its a windows only, used for debug purposes, advanced command line
option.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090417/dff6272d/attachment.html>


More information about the vlc-devel mailing list