Re: XForms: fl_initialize(argc,argv)

From: Steve Lamont (spl@ncmir.ucsd.edu)
Date: Mon Jul 24 2000 - 11:32:42 EDT

  • Next message: Jean-Marc Lasgouttes: "Re: XForms: Getting a disabled pixmapbutton stippled. [and a new question]"

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

    > sorry...here is a piece of example code ...
    >
    > the things i do are very simple...(always ;-))
    > [...]
    >
    > fl_initialize(&argc, argv, "sarViewer", 0,0); ---> if i put this line before
    > parsing arguments some of the arguments are lost...(using dbx, a memory
    > access error is detected while trying to read argv[i] with i<argc)

    *Which* arguments are eaten?

    I suspect that there's a namespace collision here. XForms will match
    an argument in an abbreviated form. For instance, `-g' will match
    `-ggamma'.

    In general, according to the manual, single letter flags/arguments
    should be avoided due the this possibility.

    Refer to Appendix A for more details.

                                                            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 : Mon Jul 24 2000 - 07:34:40 EDT