>I,m using mplab and an ICD to debug a program running on an F873. I >suspect a stack overflow, however the 'stack window' in mplab is greyed >out, so I'm unable to monitor it. Can you not simulate it in MPLAB with the stack overflow switch on? I have not been through the loop of trying to detect this situation, but know there is a switch there which warns of a stack overflow condition. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.