Yes, problem is the same but after change my 20MHz osc configured in HS mode with a 10Mhz configured in HSPPL mode it works fine... but why?

changed lines:
DEFINE OSC 40
@ __CONFIG _CONFIG1H, _OSC_HSPLL_1H & _FCMENB_ON_1H & _IESOB_ON_1H