On 5 Dec 2008, at 23:09, Fabien Costantini wrote:

>> possibly manifest the same bug, e.g. my recent fl_text_extents()  
>> mod ?
>
> To reply this specific question ; I would say YES it can happen in  
> your code IMHO because it heavily relies on fl_gc which has proven  
> to be sometimes NULL (even if for a short period of time most of  
> the time)
> Note that my defensive approach consisting of providing a valid hdc  
> in most situations will limit (quite a lot) such problem to cause a  
> bug but may not prevent it as I said in my last reply especially if  
> we happen to use these kind of api for non screen surfaces with  
> different dpi as an example.

OK.
Best way forward, for the short term? Do I just duplicate your  
defensive code to try and make sure I get a valid GC?




_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to