Error in <THashTable::FindObject>: argument is a null


probably i made a silly mistake, but unfortunatly I cant find it. Maybe someone has an idea in which direction i should look:

In my Programm i make the following call:

cbtn is a TGCheckButton ptr,
and fButtonGC->Font() returns me a FontStruct_t.

gdb tells me:

[quote] Error in THashTable::FindObject: argument is a null pointer

Program received signal SIGSEGV, Segmentation fault.
0x01b15aa0 in TGTextButton::Layout () from /share/cernlib/Linux_fc3/root_new/lib/[/quote]

Any Ideas what might have gone wrong?

Thank you very much!

Hi Maxi,

Please post a RUNNING macro reproducing your problem.
I have no problem setting the font of a check button using a FontStruct_t. E.g. this code works perfectly well for me:

const TGFont *font = gClient->GetFont("-*-times-bold-r-*-*-18-*-*-*-*-*-*-*"); fCButton->SetFont(font->GetFontStruct());
Cheers, Bertrand.