XForms: segmentation fault

Dick Middleton (dick@sqf.hp.com)
Thu, 26 Mar 1998 08:43:29 GMT

# To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

> # To subscribers of the xforms list from Chris <cgagne@videon.wave.ca> :

> I keep getting a segmentation fault in one point of a program I'm writing
> using xforms v0.88 in Linux. The segmentation fault occurs when I call
> any fl function that opens up a new window. Ex. I have a
> fl_show_question("Are you sure you want to quit?",1); When the program
> calls this function my program seg faults (sometimes) -- I can cause a
> segmentation fault pretty much when I want.

When I get problems like this that look convincingly like problems with
certain xforms objects or calls I go looking for memory access mistakes in my
program. Invariably I find I'm using a buffer too small or a freed pointer
or some stupid thing; not necessarily anything to do with the code that is
actually failing. They can be very hard to find.

Dick

-------------------------------------------------------------------------------

Dick Middleton
Phone: +44 131-331 7530
Fax: +44 131-331 7443 ( )
email: dick@sqf.hp.com ( )
( )
( ) . ~ ~ ~ ~~ .
( ) _______
( ) |
. ~ ~ ~ ~~ . |
/O\
-------------------------------------( o )-------------------------------------
- I'd rather be soaring

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/