how do you interface your PIC to the PC? resistor i guess, wich value? 1k-10K is fair enough. geater than 10K seems to cause erratic behavior in some case.

Could also be a hardware problem as we see often.. psu filtering or else.