Mail Archives: djgpp/1999/01/13/04:54:34
On Tue, 12 Jan 1999, Du Toit wrote:
> Some times I get a protection fault on a calloc() fuction
> This doesn't happen always just in some sometimes,
> (e.g. after executing the same loop for 6 times)
>
> Could someone out there please give me some tips , advice,knowledge on the
> topic or what ever you think can possibly help me!!!
Tip: you are probably overwriting some buffer that you get from
previous calls to malloc/calloc.
Advice: get the latest version of the FAQ (v2/faq211b.zip from the
same place you got DJGPP) and read section 12.2 there. It explains
how to begin debugging such problems.
- Raw text -