From: James Vasile Newsgroups: comp.os.msdos.djgpp Subject: Program crashes once, runs once, crashes, runs, crashes, runs, etc. Date: Wed, 20 Oct 1999 03:48:24 -0400 Organization: Columbia University Lines: 19 Message-ID: NNTP-Posting-Host: dialup-cc3-23.cc.columbia.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsmaster.cc.columbia.edu 940405650 11726 128.59.42.128 (20 Oct 1999 07:47:30 GMT) X-Complaints-To: postmaster AT columbia DOT edu NNTP-Posting-Date: 20 Oct 1999 07:47:30 GMT X-Newsreader: Forte Agent 1.6/32.525 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie 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