Re: XForms: Segmentation fault in fl_initialize()

From: Steve Lamont (
Date: Sat Jul 08 2000 - 13:22:50 EDT

  • Next message: Gerald Emig: "Re: XForms: Segmentation fault in fl_initialize()"

    # To subscribers of the xforms list from Steve Lamont <> :

    > Problem: If netscape is running, my XForms-Application dies
    > in fl_initialize() with segmentation fault.
    > Question: Is there a possibility to avoid this ?
    > Software should be able to detect the fact that colors are not
    > available (fdesign does, but I didn't find out how up to now).

    Hm. Since `fdesign' is based on XForms and calls fl_initialize() at
    startup, it seems to me that if it works your app should work, too.

    Can you provide a traceback?

    Are you setting any unusual options when with fl_set_defaults() before
    calling fl_initialize()?

    `fdesign' asks for the default Visual, turns off double buffering,
    sets the browser font size, and asks for a shared colormap:

        cntl.vclass = FL_DefaultVisual;
        cntl.doubleBuffer = 0;
        cntl.browserFontSize = FL_NORMAL_FONT;
        mask = FL_PDVisual | FL_PDDouble | FL_PDBrowserFontSize;

        cntl.sharedColormap = 1;
        mask |= FL_PDSharedMap;

        fl_set_defaults(mask, &cntl);

    then calls fl_initialize() in the standard manner.

    To unsubscribe, send the message "unsubscribe" to or see
    XForms Home Page:
    List Archive:

    This archive was generated by hypermail 2b29 : Sat Jul 08 2000 - 13:25:56 EDT