Quote Originally Posted by Skarr11 View Post
(2) Did I somehow invoke some ICD mode by selecting ICD compile and program, and could that be preventing the original program from being loaded?
You may have performed an "ICD compile & program" without intending to. Go back and do a "Compile & program" and see if your code then works. Once you know your code will compile and is working and are ready to use the ICD, here are a couple of tricks I have learned recently in using the MCSP ICD:
1) Place a PAUSE 100 statement as the first executable statement in you code. When ICD runs without being in animation, the ICD will stop on this very first statement and you can then step thru your code from there one statement at a time while reviewing variables and memory values.
2) To isolate where your code may be hanging up with the ICD, bracket suspect sections of code with a DEBUG DISABLE and a DEBUG ENABLE at start and end of the suspect section or routine. This will cause the ICD to skip over these sections of code. Once your program runs with the ICD you will have isolated where in your code the hangup with ICD was occuring and can look for a code incompatibility in that section of code. This happened to me recently and with some help from David at Mecanique and Darrel Taylor I finally isolated the problem and got my code working with the MCSP ICD.

HTH.