I have been programming with icprog for some time.
I have incountered this week in a problem - when I program a specific program the process stops after programming about half of the code and every time in a different place (for example Error on 0x010C or other place)-there is no problem with the software or the hardware because I can program other HEX codes.
The description seems very vague. Could you post the source code or at least describe the function i.e the required inputs-processing-output expected. BEcause this could be due to inproper pointer handling or not relinquishing the malloc ....and so on.