Previous 199869 Revisions Next

r23968 Thursday 27th June, 2013 at 02:18:32 UTC by Oliver Stöneberg
improved exception handling in running_machine::run() (nw)
[src/emu]machine.c

trunk/src/emu/machine.c
r23967r23968
442442      mame_printf_error("Caught unhandled emulator exception\n");
443443      error = MAMERR_FATALERROR;
444444   }
445   catch (std::bad_alloc &)
446   {
447      mame_printf_error("Out of memory!\n");
448      error = MAMERR_FATALERROR;
449   }
450445   catch (binding_type_exception &btex)
451446   {
452447      mame_printf_error("Error performing a late bind of type %s to %s\n", btex.m_actual_type.name(), btex.m_target_type.name());
r23967r23968
457452      mame_printf_error("Caught unhandled %s exception: %s\n", typeid(ex).name(), ex.what());
458453      error = MAMERR_FATALERROR;
459454   }
455   catch (...)
456   {
457      mame_printf_error("Caught unhandled exception\n");
458      error = MAMERR_FATALERROR;
459   }
460460
461461   // make sure our phase is set properly before cleaning up,
462462   // in case we got here via exception

Previous 199869 Revisions Next


© 1997-2024 The MAME Team