Path: utzoo!mnetor!uunet!husc6!tut.cis.ohio-state.edu!rutgers!mtune!westmark!dave From: dave@westmark.UUCP (Dave Levenson) Newsgroups: comp.lang.c Subject: Re: MSC STACK OVERFLOW Message-ID: <135@westmark.UUCP> Date: 18 Mar 88 05:18:21 GMT References: <12416@brl-adm.ARPA> Organization: Westmark, Inc., Warren, NJ, USA Lines: 20 Summary: Recursion? In article <12416@brl-adm.ARPA>, SWANGER%AUDUCVAX.BITNET@CUNYVM.CUNY.EDU writes: > > I am using MSC 5.0 to write a software package for my IBM PC clone. I am > having problems with stack overflow... > ...when I get about three functions deep... David: If you're not declaring large auto arrays, structs, or an incredibly large number of local variables, the most likely cause of stack overflow is endless recursion. If you have MSC 5.0, you probably have codeview. Can you cv your program, and watch the function calls? Can you watch the value of SP at each function call? That ought to help point the finger. -- Dave Levenson Westmark, Inc. A node for news. Warren, NJ USA {rutgers | clyde | mtune | ihnp4}!westmark!dave