or you run out of the RAM capability on your 12XXXX PIC.

Post your whole code here and PIC model, we'll have a look to that.

Compile ok here to.