Not sure, but if you correctly managed 'open/close' cursors, it is possible that the use of a 'db.close' command somewhere gave you this problem on new OS. You can test it trying not to utilize a db.close command, if you used it, and see if it works on 4.03. Maybe it is not only the cursor which is closed, but the db itself.