Read and understand this thread:http://www.picbasic.co.uk/forum/showthread.php?t=543
The PIC you have chosen has a fail safe oscillator which works when the primary osc fails, like when it is not configured properly. Download the data sheets and study.