Quote Originally Posted by vart
don't forget to initialize the pointer to NULL to avoid using uninitialized pointer before the first instance of the class is created
If it's a global variable, it's automatically initialized to 0.