ms - 2002-12-10

Logged In: YES
user_id=628773

Hi

I have solved the problem. I was declaring my Category as
follows:

class A {
private:

static Category& log;
};

Category& A::log = Category::getInstance( "A" );

It seems that the static object was being initialised too
early. My solution is as follows:

class A {
private:

static Category* log;
};

Category* A::log = NULL;

A::A() {
if( log == NULL ) {
log = &Category::getInstance( "A" );
{
}

Best Regards.