mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
show-dll-error-dialog
This commit is contained in:
parent
e9b573cb19
commit
63960eaaa8
@ -394,7 +394,15 @@ reload_implicit_pages() {
|
||||
#ifdef WIN32
|
||||
// We don't necessarily want an error dialog when we fail to load a
|
||||
// .dll file. But sometimes it is useful for debugging.
|
||||
if (ConfigVariableBool("show-dll-error-dialog", false)) {
|
||||
ConfigVariableBool show_dll_error_dialog
|
||||
("show-dll-error-dialog", false,
|
||||
PRC_DESC("Set this true to enable the Windows system dialog that pops "
|
||||
"up when a DLL fails to load, or false to disable it. It is "
|
||||
"normally false, but it may be useful to set it true to debug "
|
||||
"why a DLL is not loading. (Note that this actually disables "
|
||||
"*all* critical error messages, and that it's a global setting "
|
||||
"that some other libraries might un-set.)"));
|
||||
if (show_dll_error_dialog) {
|
||||
SetErrorMode(0);
|
||||
} else {
|
||||
SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user