Re: XForms: Threads and fl_get_input()

From: Steve Lamont (spl@ncmir.ucsd.edu)
Date: Sat Feb 08 2003 - 14:01:37 EST

  • Next message: Enrico De Filippo: "R: XForms: Threads and fl_get_input()"

    # To subscribers of the xforms list from Steve Lamont <spl@ncmir.ucsd.edu> :

    > Unfortunately, if I insert this, when I call fl_get_input() (to
    > insert a number or a string from keyboard) from a forms that is
    > managed my the main program (not by the thread) the program is
    > definitively blocked. What is wrong? Is there something to do before
    > calling fl_get_input()? The error is not present if I eliminate
    > XInitThreads();

    fl_get_input() is used to query the contents of an Input object's
    field. It should return more or less instantly.

    Are you referring to fl_show_input(), which pops a dialog box and
    requests input?

    By "blocked" do you mean that activity in all the threads ceases?

    I'm not sure why this would happen. The main loop of fl_show_input()
    looks like this

        do
        {
            retobj = fl_do_only_forms();
        }
        while (retobj != fd_input->ok && retobj != fd_input->cancel);

    and fl_do_only_forms() isn't that much different than fl_do_forms().

                                                            spl

    _________________________________________________
    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://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Sat Feb 08 2003 - 14:02:28 EST