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

Hi,

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:

with
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/libGui.so[/quote]

Any Ideas what might have gone wrong?

Thank you very much!
Maxi

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.