Sender: nate AT cartsys DOT com Message-ID: <3744939A.AFB724FD@cartsys.com> Date: Thu, 20 May 1999 15:58:34 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: don understand References: <37439D93 DOT 675312C9 AT pacific DOT net DOT sg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Mark Yeo wrote: > > Have been compiling my own btree code. Have been giving out-of segment > errors. first problem is that i donno understand the segment errors and > the sources. You mean something like "Exiting due to SIGSEGV"? That's caused by trying to access memory you don't own. Overrun, corrupted or NULL pointers, usually. FAQ section 9.2 explains some ways to find the bug. > Second problem is that A printf statement in my code has > TWO outputs on the screen However, the next time i started my pc, the > code works well. Are you sure you didn't somehow manage to execute that code twice? It's also possible that secondary damage from whatever bug caused the above crash (or another one) messed up the program's state. If you can't reproduce it, there's probably not much anyone can do about it. -- Nate Eldredge nate AT cartsys DOT com