Hi all, When I simulate the following code in MPLAB, int test; /************* START OF MAIN FUNCTION ***************/ int main ( void ) { test = 1; while (test < 10) { test ++; } } when the last bracket is reached, a software reset occurs. Why? -- Regards, Stephen D. Barnes -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist