Rule Definition
It is not recommended to use global objects in constructors or destructors because it is not possible to know in which order the global objects are instantiated or deleted through different C++ compilation units. Thus there is a risk when global objects are used in constructors or destructors that the application will crash because a call is made to an object that is not yet in existence or has already been destroyed.
Remediation
Review the object construction/destruction logic to not use global objects at this step.
Related Technologies
C++
Technical Criterion
Programming Practices - Modularity and OO Encapsulation Conformity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.