Have you overflowed (or is that overflown?) the stack? Don't know 18F46K22 but some 18F's have option to reset on stack overflow.

George