Date: Wed, 13 Jan 1999 11:53:14 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Du Toit cc: djgpp AT delorie DOT com Subject: Re: Protection fault! please help "I'm desperate!!!!" In-Reply-To: <77h6fb$ff1$1@nnrp01.iafrica.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com 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.