On 16 Jul 2011, at 22:57, Carlos Luna wrote:

>> 
>>      ALSO: perhaps it's no longer needed, but I thought FLTK apps
>>      that used the FLTK image library had to call:
>> 
>> fl_register_images();
>> 
>>      ..at the top of main() to ensure the lib properly initialized.
>>      So you should try adding that as the first thing in your main().
> 
> Ok, added the
> 
> fl_register_images();
> 
> line and everything works OK so far. What exactly does it achieve? I mean, if 
> it was totally needed then the app shouldn´t work at all when that line isn´t 
> included, right?

That depends on how tolerant the underlying system is of you accessing 
unallocated RAM and so forth.
I suspect it would not work on OSX or any recent linux (or probably any more 
recent WinXX) system, but WinXP has (in my experience) been tolerant of bad 
memory buffer allocations, leading to this sort of hard to figure bug.
I've certainly had issues in the past with WinXP and buffer allocations...




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

Reply via email to