FLTK logo

Re: [fltk.general] FLTK as an external dependency in Bazel?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: FLTK as an external dependency in Bazel? Manolo Jan 29, 2023  
 
Continuing investigation …

The commit mentionned above introduces a call to Fl::add_fd() in the constructor of class ExternalCodeEditor.
At least under macOS, this call implies to open the display. The blocking occurs while attempting to open the display.

One might consider that Fl::add_fd() should be avoided by fluid in command-line mode because the display
should not be opened in that mode. The problem is that there's a global object created at static initialization time :
    Fl_Code_Type Fl_Code_type; (see line 547 of fluid/Fl_Function_Type.cxx)
and type Fl_Code_Type contains a member variable of type ExternalCodeEditor.
Therefore, the constructor of class ExternalCodeEditor runs (and calls Fl::add_fd() since the recent commit)
at static initialization time, also when fluid is in command-line mode.


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/f4df8b39-bda7-4aa3-b0ec-0201ea3a36d6n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.