That's about all that needs shown. createInstance() is called during setup() which is called from the main process. After that getInstance() is used. Upon shutdown the destructor calls clear on m_Messages. Fairly straightforward, somewhat modified, singleton pattern.
VS2008 complains about private constructors/destructors
Ok. So is it saying the compiler cannot clean up the instance b/c it is private?? The whole singleton pattern relies on it. I don't think visibility of the dtor/ctor applies to the compiler cleaning up statics at program exit.