I have written an interactive skill testing ap to be used as part of our staff training. The questions are held in a file of records, each record containing the hotspots and allowable keypresses and the filenames of the graphics to load and their sequences.
As the user takes the test, for each question the file is opened and the question is loaded into the same record variable, then the file is closed again.
The tests all work perfectly, but if the user clicks the *Abandon the Test* button (or the *Continue* button when the test is finished), the form is meant to close but instead nothing happens. I have single-stepped through the code and it definitely runs via the SkillsForm.Close statement.
I have been through my code and reworked all places that had Exit or Break statements to remove them, and I have also removed all recursive routines.
The problem is intermittent but happens often enough to be very annoying - especially if the user has sat 3 or 4 tests. I think there has got to be a memory issue here, but I cannot see it. Another strange thing is that the rest of the program will function normally even though the form will not close.