XForms: Application exits normally after processing forms

Matthew (matthew@mattshouse.com)
Wed, 10 Mar 1999 09:11:00 -0600

# To subscribers of the xforms list from Matthew <matthew@mattshouse.com> :

I have an interesting problem. I use the stock myapp_main.c generated by
fdesign and the program exits after showing a form. Example:

__________________SNIP__________________________
fl_show_form(fd_login->login,FL_PLACE_CENTERFREE,FL_FULLBORDER,"Login");
fl_do_forms();

printf("hello world\r\n");

return 0;
}
_________________END_SNIP________________________

The form fd_login->login shows up and I supply my username and password. The
form then shows a different form just before hiding fd_login->login. As soon
as the other form is written to the screen the program exits without error.
The words 'hello world' appear as requested above. My question is this: In
what instance should I ever see the 'hello world' output? A temporary solution
is this:

__________________SNIP__________________________
fl_show_form(fd_login->login,FL_PLACE_CENTERFREE,FL_FULLBORDER,"Login");

while(1){
fl_do_forms();
}
return 0;
}
_________________END_SNIP________________________

This works fine, but seems cludgy. I'm using .88, and have not tried it on .89
yet. I use Linux 2.0.36 on a Pentium II.

Matthew

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