Re: XForms: "fl_reset_io_callback"

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 11 Jul 97 10:15:41 PDT

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

> I use fdesign to set the parameters of object callbacks to (long)fdui.
> Now a core dump results when one clicks on any of these objects.
> the callback of each object is:
> void my_object_cb(FL_OBJECT *ob, long fdui){
> FD_myform form=(FD_myform *)fdui;
> /* do things with the form */
> }

You shouldn't need to do this. The FL_FORM structure contains a
pointer to the fdesign generated structure FD_whatever structure. You
can fish it up as follows:

void my_object_cb( FL_OBJECT *ob, long data )

{

FD_myform *form = ( FD_myform *) ob->form->fdui;

[...]

}

I suspect this is the source of your problem.

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/