wxArt2D
|
#include <gen.h>
This object helps fixing initialization order of static objects and the wxWidgets
internal memory critical sections. If you have static object that owns dynamic memory, but doesn't create it in its constructor, just create such an object in the objects constructor of before the definition of the static object to fix crashes in memory.cpp.
This could also be a function as it doesn't have data, but you might want to use it as static object, so it is a class.