> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb7b026c0 (LWP 5133)]
> 0x0806c5ee in Fl_Widget::visible (this=0x3) at ../FL/Fl_Widget.H:163
> 163 int visible() const {return !(flags_&INVISIBLE);}
> (gdb) bt
> #0 0x0806c5ee in Fl_Widget::visible (this=0x3) at
> ../FL/Fl_Widget.H:163
> #1 0x080738ce in Fl_Group::draw_child (this=0x80bf3c8, [EMAIL PROTECTED])
> at Fl_Group.cxx:577
>
> the #0 line wasnt there before.
> so it segfaults while its calling a method
>
> int visible() const {return !(flags_&INVISIBLE);}
>
> of a widget that has adress 0x3 which again is not
> accessable memory. now, my question would be:
>
> 1: why isnt it accessable?
> 2: which widget is it?
>
> any hints? ty
Well, this is where it gets tricky.
Answering question (2) first, I'd say it is not widget at all, since we
can pretty safely assume that no widgets will have been allocated with
an address as low as 0x3...
It is most likely that you have a widget pointer somewhere that is
either entirley un-initialised, or which has been over-written with the
value 3 for some reason.
I'd tend towards the "accidental over-writing with 3 option", and fish
about in the code to see where that might happen.
Un-initilaised pointers tend to be either 0 (if they have static scope)
or some random value (if they are stack automatic.)
However, if you are creating widgets on the stack, and something else on
the stack previoulsy was a 3, then...
Are you creating widgets on the stack? If so, try making them static
instead to see if your segfualt suddenly becomes a 0x0 rather than an
0x3 !
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk