I don't have the time to troubleshoot the problem much as I would like to.
I ended up moving the reading and writing to the INI file to the start of the program and out of the loops. Problem solved.
If I get the time --- whenever that is --- I will go back and re-visit this issue.
.