The only global variable is the reference to the database.
The only global variable is the reference to the database.
OK, I seem to have solved it, but I'm interested to know how.
Turns out I had another, half written method called mainLoop() that I was going to call later (note: I never called it in my code) which had, as part of it's instructions, a query call and a close call to the DB. If I comment out that method the code works perfectly.
It's a bit weird, but I'll take it and run.
Thanks for the help.
Cheers
G
Bookmarks