Date: Mon, 13 Sep 1999 12:30:22 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Josh Reed cc: djgpp AT delorie DOT com Subject: Re: Program Crash In-Reply-To: <37D880B5.592C92C1@uswest.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 9 Sep 1999, Josh Reed wrote: > I am almost positive that I overrun the stack. I looked > in the faq and used stubedit to set my stack size to 4mb. No, a small stack is almost certainly NOT your problem, so enlarging it won't help. In the case of stack overflow, both ESP and EBP would be invalid. But in your case, ESP is valid, while EBP is garbage. This usually means that you are overruning some local array. > I think it pukes on > the really long pathnames (path is the variable that holds the current path.) Examine carefully the declarations and the code that deal with char arrays which hold path names.