<< not enough to try to help >>
As the original poster pointed out, the code is good in the first place so even if I send you the whole application it'll probably run correctly.
I don't need you to read my code. I need to find somebody who has encountered the same symptom.
<< re-code without cursor >>
will probably get me out of the current jam, but still leave me wondering when and where cursors will randomly restart themselves.