I have done some research and reading (on CCSinfo forums...the company that makes the compiler that was used for the programming) into what my problem could be. It appears like there may be "noise"/EMI/interference (whatever the correct term is) that is causing the relays to latch. I built a tester board, that verifies the findings (I replaced the relays with LEDS), and they didnt stay on (latch) like it did with the Relays.
So my conclusion is, is that the hardware is the problem, and not the software. So I will start from that direction now
So my conclusion is, is that the hardware is the problem, and not the software. So I will start from that direction now