Hi,
I am using a singleton class like the one given below:
class singleton
{
static singleton *object;
singleton();
public:
getInstance();
~singleton();
};
From some other function i try to do the following:
singleton *p= singleton :: getInstance();
detele p;
But here my program dumps. What could be the problem.
Thanks and Regards,
Saurabh