The way the above is written, bypass most/all DT's INT call convention.

Could you post your Whole code, PIC model and Configuration fuses?

A small description of what you want to do would also be great.