Re: XForms: A bug?

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 26 Nov 98 15:59:58 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I'm working with an XYplot object, and when I want to restore
> autoscaling , I use:
>
> fl_set_xyplot_xbounds(fd_forma_grafica->objeto_grafica, 10, 10);
> fl_set_xyplot_ybounds(fd_forma_grafica->objeto_grafica, 10, 10);

I just tested it and it works okay for me.

> When I run the program , it crashes and dbx shows me the following:
>
> dbx version 7.0 May 28 1996 00:47:28
> Core from signal SIGSEGV: Segmentation violation
> (dbx) where
> > 0 get_min_max(0x0, 0x0, 0x10018e80,0x10018e84) ["xyplot.c":1980, 0x5ff9e6d0]
> 1 find_xbounds(0x0, 0x0, 0x10018e80, 0x10018e84) ["xyplot.c":1994,0x5ff9e77c]
> 2 fl_set_xyplot_xbounds(0x10018d78, 0x0, 0x10018d78, 0x10018e84) ...
^^^^ ^^^^^^^^^^

Hmm. This looks very suspicious. Just as a wild guess, are you sure
you're including forms.h at the beginning of the source file? It
might be that the compiler is doing the wrong thing with the
arguments if there's no function prototype. That's about all I can
guess at this moment without more information.

Can you reduce the problem to a simple example (for instance, just a
form with the XYPlot object and a few simple initialization calls)? I
cobbled up something quickly with `fdesign' that toggled between
autoscale and manual scale quite quickly.

spl
_________________________________________________
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/