> > I am currently attempting to use a program that employs the FLTK
> library, but it crashes reliably when a drop-down menu button is
> clicked.  It seems to occur in fl_draw's fl_measure function when the
> 64bit library is used.
> >
> > running the program through gdb on 64-bit Redhat Linux results in the
> following message when the button is clicked...
> >
> > Segmentation fault
> > 0x00002aaaaab4c299 in fl_measure(char const*, int&, int&, int) ()
> > from /usr/lib64/libfltk.so.1.1
> >
> > Any insights would be greatly appreciated.
> 
>       Most common problems with fl_measure():
> 
>               o Forgetting to call set_font(int,int) before calling
> fl_measure(),
>                 so that it knows what font face and size to use for the
> measurement.
>                 (fl_measure() uses the 'current font' which, if unset,
> might crash)
> 
>               o Be sure the two arguments after the string are set to 0
>                 (unless you want wrapping behavior)
> 
>               o Be sure the string passed in isn't NULL
> 
>       If it's not one of those, is there anything special about
>       the string being passed in? (utf8, symbols..)


Also, do we know what version of fltk this actually is?
The .so name of .1.1 isn't really giving me any clues. I guess a call to 
Fl::version() would tell us? Might be interesting to know that, since IIRC 
fltk-1.1 was more "fragile" is the font was not set. I think fltk-1.3 was 
changed to be a bit more robust in that regard (though may well be mistaken.)


SELEX Galileo Ltd
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

Reply via email to