Re: [fltk.general] Mac OS: crash in lockFocus

2012-12-30 Thread claude roux
Again thank you for your answers. I did not expect to receive so fast a response, which is in par with the quality of your tools. However, I have eventually discovered what was wrong. When I load a FLTK window, then a window of my own (within my COCOA application), then again a FLTK window,

Re: [fltk.general] Mac OS: crash in lockFocus

2012-12-29 Thread claude roux
Hello, Thank you for your quick answer. I tried your suggestion, however, from my understanding of this function, it only applies within the context of a thread, which is actually not the case in which my program crashes. Alas, it did not solve any of my problems :-( Basically, what I'm

Re: [fltk.general] Mac OS: crash in lockFocus

2012-12-29 Thread Manolo Gouy
Again, that Fl_Window::make_current() gets called when you destroy your window suggests that FLTK windows are not handled correctly. Hello, Thank you for your quick answer. I tried your suggestion, however, from my understanding of this function, it only applies within the context of a

Re: [fltk.general] Mac OS: crash in lockFocus

2012-12-29 Thread Ian MacArthur
On 29 Dec 2012, at 11:44, claude roux wrote: Basically, what I'm trying to do is to implement a new programming language, which uses FLTK as its main windows interfacing. I have implemented a complete IDE in COCOA to run and debug any programs of that language, which implies some level of

Re: [fltk.general] Mac OS: crash in lockFocus

2012-12-21 Thread Manolo Gouy
Any info about the suggestion previously made to use the Fl::delete_widget(Fl_Widget*) function ? Another suggestion would be to replace [[i-xid contentView] lockFocus]; by if ( ! [[i-xid contentView] lockFocusIfCanDraw] ) return; Hello, I have been using FLTK for quite a while now

Re: [fltk.general] Mac OS: crash in lockFocus

2012-12-20 Thread Ian MacArthur
Probably one for Manolo I guess: I don't even understand the question...! On 19 Dec 2012, at 16:39, claude roux wrote: Hello, I have been using FLTK for quite a while now (about a year), and with some success. I use the 1.3.2 version, which I have integrated in projects on Windows, Mac

[fltk.general] Mac OS: crash in lockFocus

2012-12-19 Thread claude roux
Hello, I have been using FLTK for quite a while now (about a year), and with some success. I use the 1.3.2 version, which I have integrated in projects on Windows, Mac OS and Linux. However, I have a real problem on Mac OS, a crash which happens in certain cases when I mix a (non FLTK) modal