him8to / sneek

Automatically exported from code.google.com/p/sneek
0 stars 0 forks source link

UNEEK/SNEEK+DI runs out of file handles if the games directory has a lot of directories #130

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have more than 10 directories in the games directory (maybe it's >6, but I 
know it's >10 due to MAX_HANDLES being defined as 10 )
2. delete diconfig.bin
3. start up UNEEK/SNEEK+DI

What is the expected output?

What do you see instead?
UNEEKLOG.txt with the last 6 lines repeating forever.

What revision are you using?
r166
With what configuration (SNEEK/UNEEK/SNEEK+DI)?
UNEEK, but I believe it applies to SNEEK+DI as well

Please provide any additional information below.
add an DVDClose call in the DVDGetInstalledGamesCount function after adding one 
to GameCount but before opening up a new file handle in the while loop.
see patch.diff

Original issue reported on code.google.com by logan.gba on 25 Jul 2011 at 2:42

Attachments:

GoogleCodeExporter commented 8 years ago
dup/fix for issue 129

Original comment by logan.gba on 25 Jul 2011 at 2:51

GoogleCodeExporter commented 8 years ago

Original comment by urt...@gmail.com on 25 Jul 2011 at 7:32