Monitoring errors with singleton
I don't want to sound harsh, but the code is useless. On top of that, the singleton seems to be slightly off in this situation. You should have a function which is a friend to the class and has static local variable and then simply return reference to it. The class itself should have private constructor, so that only the specified function can instantiate it.

Why?


Because it is not thread safe
Because it is singleton
Because only one message is supported at a time
No real way to retrieve the message as string (companies will need a person who looks at the monitor)
Memory leak


Alternative:

CustomStream&amp; debugStream()
{
    static CustomStream stream;
    return stream;
}


where CustomStream is thread safe stream possibly inhertied from std::ostream. Do note that static variables are initialized in a thread safe way only from C++11 and forward (there might be some compiler extensions that allow it prior to C++11).