39 #ifndef LIB_ZOMBIE_CHECK_H 40 #define LIB_ZOMBIE_CHECK_H 61 bool deceased_ =
false;
73 std::strncpy(zombieID_,
id.c_str(), 41);
92 ,error::LUMIERA_ERROR_LIFECYCLE);
97 buildDiagnosticMessage()
const 99 string msg{
"Already deceased object called out of order during Application shutdown. " 100 "Lumiera Policy violated: Dependencies must not be used from destructors."};
102 msg +=
" Offender = "+
string{zombieID_};
ZombieCheck(string id)
install a zombie check, tagged with the given id.
Implementation namespace for support and library code.
Derived specific exceptions within Lumiera's exception hierarchy.
Automatic lifecycle tracker, to produce an alarm when accessing objects after deletion.
Lumiera error handling (C++ interface).