[MPlayer-dev-eng] avoid calling SetErrorMode(0x8003) on win32 when --enable-debug is specified
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Jan 26 22:25:49 CET 2010
On Mon, Jan 25, 2010 at 05:04:19AM +0100, Gianluigi Tiesi wrote:
> it would be fine to ifdef out SetErrorMode(0x8003) call in mplayer
> if I compile it with enable debug (MP_DEBUG)
>
> it's usefull e.g. when I put a DebugBreak() (int 3)
> in foreing stuff (at the moment a dll compiled with vc)
>
> seterrmode prevents the debugger popup window
You could just add a SetErrorMode _and_ a DebugBreak instead of just a
DebugBreak and then you neither need a special MPlayer build nor
do we need special #ifdefs.
However the only one that is non-negotiable of those flags is 0x8000
> anyway useful for display uncaugth problems.
> I think it would also useful not to install exception handlers ("Catch signals" part)
> at least on win32, since the current code anyway doesn't support calling
> gdb on crash on win32
First, they have other purposes like cleaning up the terminal and sending
ID_SIGNAL to anyone using slave mode.
Also the gdb stuff should work on Cygwin.
More information about the MPlayer-dev-eng
mailing list