Re: XForms: seg fault

Yann Guichoux (guichoux@shom.fr)
Mon, 22 Jun 1998 09:08:23 +0200

# To subscribers of the xforms list from Yann Guichoux <guichoux@shom.fr> :

AMIT BHATNAGAR wrote:
>
> # To subscribers of the xforms list from AMIT BHATNAGAR <amit@cs.dal.ca> :
>
> On Sat, 20 Jun 1998, vsexton wrote:
> >> I have no idea why this line is giving me a seg fault
> >> fl_set_input (fdui_output->output_field,"");
>
> > I suggest that you provide copies of the lines that do the following:
> > Define the FD variable as a global (and where it is located)
>
> I have a file called interface.h where all of my .h's and global FDUI
> variables are kept. In my interface.h I have
>
> #include "output.h"
> FD_output *fdui_output;
>
> and this file is #included in the calling program.
>
> > Define the fdui_output structure
>
> /**** Forms and Objects ****/
> typedef struct {
> FL_FORM *output;
> void *vdata;
> char *cdata;
> long ldata;
> FL_OBJECT *output_field;
> } FD_output;
>
> > Create the fdui_output structure
>
> fdui_output = create_form_output ();
>
> > I suspect it has to do with these, but no one can offer constructive advice
> > without seeing these, only guesses.
>
> I hope this helps..
>

Did you remove your ".o" files before re-compiling your program after
having added your "Output_field" Object ?
It happens to me very often !!!
_________________________________________________
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/