Branch: Tag:

2008-07-31

2008-07-31 18:01:49 by Martin Stjernholm <mast@lysator.liu.se>

Disabled the windows dll load error dialogs by default and added an option
-rl to enable them.

Rev: src/configure.in:1.1067
Rev: src/main.c:1.232
Rev: src/pike_embed.h:1.11

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: main.c,v 1.231 2008/06/29 10:40:55 mast Exp $ + || $Id: main.c,v 1.232 2008/07/31 18:01:48 mast Exp $   */      #include "global.h"
468:    p++;    goto more_r_flags;    +  case 'l': +  set_pike_runtime_options (RUNTIME_ERROR_DIALOGS, +  RUNTIME_ERROR_DIALOGS); +  p++; +  goto more_d_flags; +     default:    p++;    break;
539:    if (d_flag)    set_pike_debug_options(ERRORCHECK_MUTEXES, ERRORCHECK_MUTEXES);    + #ifdef HAVE_SETERRORMODE +  if (!(runtime_options & RUNTIME_ERROR_DIALOGS)) { +  /* This avoids popups when LoadLibrary fails to find a dll. +  * +  * Note that the popup is the _only_ way to see which dll (loaded +  * indirectly by dependencies from the one in the LoadLibrary +  * call) that Windows didn't find. :( Hence the -rl runtime option +  * to turn it on. +  * +  * Note: This setting is process global. */ +  SetErrorMode (SEM_FAILCRITICALERRORS | +  /* Maybe set this too? Don't know exactly when it +  * has effect. /mast */ +  /*SEM_NOOPENFILEERRORBOX | */ +  GetErrorMode()); +  } + #endif +     init_pike_runtime(exit);       /* NOTE: Reuse master_location here to avoid duplicates of