From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Program crashes once, runs once, crashes, runs, crashes, runs, etc. Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: X-Trace: /K49oGjNM24KhJu74ak+Ip9WRIV+RsHNtGYqtUKamXjvuqqevVeGPVXwDyf6KgJTkL1Og9uZjcZX!sg8HlX0TJ/3RWfnLjykJq03diBmlFuYeqj/AcU+XEPdPWqvl/1kJgJEPddjNk6qcOYEv X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 20 Oct 1999 14:11:55 GMT Distribution: world Date: Wed, 20 Oct 1999 14:11:55 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com James Vasile wrote in message news:cnINOE3q0a2g85mZ8CyTQU0r9wE5 AT 4ax DOT com... > I was coding some little piece of fun stuff and all seemed right in > the world. I ran her over and over, and she worked with all my test > inputs and gave me sterling output. Then she crashed! So I ran her > again (same code, same inputs), and she ran fine. So I ran her again > (same code, same inputs), and ths time she crashed. And so on. > Sometimes crash, sometimes not. I'm a little confused that same code > and inputs would only sometimes crash. This isn't complicated stuff, > and while I had malloced up a bunch of mem, even reducing the amount > of memory malloced seemed not to reduce the rate of crashing. (And > besides, my error catch on malloc never even winked at me). > > So I'm stumped. I feel that there is something I'm missing, something > basic, and this will sound like a problem familiar to more experienced > DJGPPers (this is my first go-round with DJGPP). > > Any and all help appreciated. > > Peace, > -J source code please?