Olin Lathrop wrote: >Subject: Re: [PIC]: Stack overflow? Size of stack? >Date: Fri, 25 May 2001 07:33:33 -0700 > > > I *may* be having a problem with stack overflow (or underflow, for that > > matter), but I can't seem to nail it down with 2000 lines of code. Can > > anyone suggest how this can be done? > >Both the simulator and emulator have facilities for trapping this. > > In the MPLAB simulator, the stack overflow break is *disabled* by default. To enable it, you need to go to: Project > Edit Project > Devlopment Mode Change > Break Options In that dialog, the "Stack Overflow Break Enable" box must be checked to enable checks for stack under/overflow. (Don't ask how long it took me to find this setting or how long I tried to track down an underflow before I did. Why Microchip chose to default this option to OFF, I'll never know.) _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body