Re: XForms: problems with fl_get_choice_text

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 5 Nov 97 12:04:17 PST

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

> int redraw() !! nothing important changed here !!

This should be

int redraw( XEvent *event, void *data )

but that shouldn't make any difference other than to possibly shut up
some compiler warnings

> fl_hide_object(MainForm->output_field);
> fl_set_object_label(MainForm->output_field,output);
> fl_show_object(MainForm->output_field);

Why do the hide/show? Is this to prevent flicker? You should be
using fl_freeze_form() if flicker is a problem, though in this case it
should not be a problem -- the redraw should be quite fast.

> Touching a key on the active Window results in the mentioned
> segmentation fault AND the last output of the printf was say

> 2

By "touching a key" what do you mean? Clicking on a button or
pressing a keyboard key.

In any case, it looks as if you're walking on something.

> I checked the demos that come with the XForms but none of them does
> it that way, in these, everything is in the .c-file, could that be
> the point?

Nope. I use several files in anything other than trivial applications
without a problem.

> I'm sorry not be able to give more information, perhaps someone got
> some hints.

Where does the core dump occur? Can you do a traceback with a
debugger (the gdb `where' command will do this).

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/