Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cAppExitCatcher Class Reference

#include <cAppState.h>

Inheritance diagram for Gray::cAppExitCatcher:
Gray::cSingletonStatic< cAppExitCatcher >

Public Member Functions

 cAppExitCatcher ()
 
 ~cAppExitCatcher ()
 

Protected Member Functions

virtual void ExitCatch ()
 
- Protected Member Functions inherited from Gray::cSingletonStatic< cAppExitCatcher >
 cSingletonStatic (cAppExitCatcher *pObject) noexcept
 
virtual ~cSingletonStatic () noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from Gray::cSingletonStatic< cAppExitCatcher >
static bool isSingleCreated () noexcept
 
static cAppExitCatcherget_SingleU () noexcept
 
static cAppExitCatcherget_Single ()
 
static TYPE2 *__stdcall get_SingleCast ()
 
static cAppExitCatcherI () noexcept
 
- Static Protected Attributes inherited from Gray::cSingletonStatic< cAppExitCatcher >
static cAppExitCatchersm_pThe
 pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More...
 

Detailed Description

misbehaving libraries can call exit(). This does NOT work with abort() calls. Try to catch and block this or at least log it.

Constructor & Destructor Documentation

◆ cAppExitCatcher()

Gray::cAppExitCatcher::cAppExitCatcher ( )

◆ ~cAppExitCatcher()

Gray::cAppExitCatcher::~cAppExitCatcher ( )

Member Function Documentation

◆ ExitCatch()

void Gray::cAppExitCatcher::ExitCatch ( )
protectedvirtual

Someone (library) called "exit()" that should not have? Does not catch "abort()". The SQL driver calls "exit()" sometimes. bastards. but this is also called legit at the application termination.


The documentation for this class was generated from the following files: