Re: XForms: File Selector

From: spl@eggshell.ucsd.edu
Date: Tue Jul 03 2001 - 10:00:33 EDT

  • Next message: Robert Williams: "XForms: Compile: flcolor.o(.text+0x1139): undefined reference to `_IO_stderr_'"

    # To subscribers of the xforms list from spl@eggshell.ucsd.edu :

    > Hi all, I have a problem using file selector. When I type into the
    > directory box a path name which does not exist, the aplication
    > crashes. How can I control this ?.

    The FileSelector goodie makes no check to see whether the file exists
    or not -- this is up to your application. If you are attempting to
    open the file for input, simply check the result of fopen() for NULL.
    If it's NULL, then take appropriate corrective action.

                                                            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 : Tue Jul 03 2001 - 10:08:04 EDT