Am 01.06.2009 18:34 Uhr schrieb "Loic" unter <[email protected]>:
>>
>>> BUT... When I comment the large loading of data, it do not
>>> crash anymore...,
>>> Also I tried to make the loading of data at the beginning of
>>> the exe, and it runs without problems...
>>>
>>> Does it make sense to you? because it does not for me...
>>
>>
>> This sounds a lot like an incorrectly initialised pointer or a too-small
>> buffer allocation.
>> You are overwriting some resource somewhere.
>
> I agree with you, it sounded like that too me too...
> But I don't think it is the explanation...
> because I am using this code since a long time (>1Year) and I never observed
> any problem of that kind...
FLTK has no negative interaction with malloc or fraed or similar.
I highly recommend using a debugger to find out what exactly causes the
crash. Working efficiently with a debugger needs some training but will save
you hours and days of blind guessing.
Even if code worked for years, a slight change may trigger some buffer
overrun that once was harmless but now causes a crash. Just because a
function runs to the end does not mean that it won't cause a crash later in
the code.
If you are on Linux, and gdb does not solve the issue because there is some
random corrupt memory, then "Valgrind" is the perfect tool for you.
Matthias
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk