> I have changed Fl::flush() to Fl::awake(). Now I get mistakes when
> I call this function:
>
> Function {process_status_noncritical(cnc_rt_status_noncritical
> *pstatus)} {open return_type void
> } {
...
> Fl::awake();} {}
> }
>
> All mistakes are related to memory. Malloc(),Realloc()
> (I have compiled FLTK without shared libraries), invalid pointer.
> *** glibc detected *** /home/cnc/cnc_v2/cnc_gui/cnc_v2: realloc():
I don't pretend to understand your function at all, but...
As far as I understand it, Fl::flush() and Fl::awake() have completely
different purposes, so are probably not interchangeable. Fl::flush()
deals with window redrawing, and Fl::awake() deals with threading.
http://www.fltk.org/documentation.php/doc-1.1/Fl.html#Fl.flush
http://www.fltk.org/documentation.php/doc-1.1/Fl.html#Fl.awake
What I also notice is that your Fl::awake() call is missing an argument.
Does this help?
D
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk