Hi Manolo,

    Since you're our Fl_Cocoa.mm guru, was wondering if you could
    weigh in on the bug Peeter found a few weeks ago, and my proposed
    solution that advises we perhaps switch our use of pthreads
    in Fl_Cocoa (for handling add_fd()) over to using NSThread.

    I think I did all the investigative work and found the solution,
    but not sure I'm the right person to code it.

    I wrote the original carbon threading code in question
    (the add_fd() threading stuff), and I think that's been
    fairly bug free, but apparently during the recent port to cocoa
    pthreads apparently doesn't play nice with the cocoa libs.

    By switching from using pthreads to NSThread in just the Fl_Cocoa code
    might solve the memory leak.

    Please see the STR for details:
    http://fltk.org/str.php?L2848

    This should maybe be a HIGH instead of a MED, as apparently a lot
    of memory is leaking..
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to