from the help section on interrupts i read :
How can i do that ? I use a code that runs perfect on P18 and P24 , my CPU (P32MX340F256H) seems to get completely stuck if i call that function, simply skipping that call brings the ISR to live again.It is not recommended to use a function call from interrupt. In case of doing that take care of stack depth.
Currenly the view statistics does not work for this code so i cannot easily check the stack-depth.