Akuma no Houkon
Certified Guru
- Joined
- Mar 4, 2004
- Messages
- 1,194
- Age
- 44
- Location
- USA > Washington > Everett
- Website
- akuma.gp32news.com
Using the SDK to open and read from a file on the SMC, if I open it / read from it / close it about 10 times, it stops opening.
Is there a reason for this? Some SMC card limit? All other games/apps I have used work fine on the SMC reading multiple files multiple times...
This is what I do; I have a large AllMyLevels.dat file, I open the file, seek to the spot that the level the player is on is located, and read that data into my arrays. I then close the file. After level 10 it stops working, (or if I load level 1 ten times), if I start on level 10, it will load upto level 20, etc... after opening, reading, and closing the file 10 times (_always_ 10 times) it stops working.
Now the obvious work arround for this is to open the file at the start of the program and close it at the end. I do that and it works just fine for this situation (assuming it doesnt cause problems on the SMC if you shut off the GP32 without the file being closed...), but I have other situations where this method is not an option.
Does anyone know why this is happening?
Is there a reason for this? Some SMC card limit? All other games/apps I have used work fine on the SMC reading multiple files multiple times...
This is what I do; I have a large AllMyLevels.dat file, I open the file, seek to the spot that the level the player is on is located, and read that data into my arrays. I then close the file. After level 10 it stops working, (or if I load level 1 ten times), if I start on level 10, it will load upto level 20, etc... after opening, reading, and closing the file 10 times (_always_ 10 times) it stops working.
Now the obvious work arround for this is to open the file at the start of the program and close it at the end. I do that and it works just fine for this situation (assuming it doesnt cause problems on the SMC if you shut off the GP32 without the file being closed...), but I have other situations where this method is not an option.
Does anyone know why this is happening?