Well, I was desperate and willing to do anything.  ;D

Nope, I did not dynamically allocate, and found no problems with my loops. This problem is a frequent occurence, but the solutions aren't forthcoming to my case.