My program is constantly opening and closing files, and several times now I've run into serious bugs because I'd forgotten to close a file, which was then opened over and over and eventually caused a crash (too many open files).
To help me spot these bugs before they happen, I'm thinking of putting a something on the screen to tell me how many open files I have, so that I can spot problems before they start, but is there any way of doing it? Is there some way to check how many files are currently open?
To help me spot these bugs before they happen, I'm thinking of putting a something on the screen to tell me how many open files I have, so that I can spot problems before they start, but is there any way of doing it? Is there some way to check how many files are currently open?