#161019 - mfallon - Sat Jul 26, 2008 9:14 am
Does anyone know why this works fine:
unsigned int *splashTiles=new unsigned int[3632];
FILE *file=fopen(path,"rb");
fread(splashTiles,4,3632,file);
fclose(file);
While this crashes inside of fread on two emulators and hardware:
unsigned int splashTiles[3632];
FILE *file=fopen(path,"rb");
fread(splashTiles,4,3632,file);
fclose(file);
I even tried pulling it out of my code and isolating it to make sure there wasn't some other memory issue going on.
Thanks,
Matt
unsigned int *splashTiles=new unsigned int[3632];
FILE *file=fopen(path,"rb");
fread(splashTiles,4,3632,file);
fclose(file);
While this crashes inside of fread on two emulators and hardware:
unsigned int splashTiles[3632];
FILE *file=fopen(path,"rb");
fread(splashTiles,4,3632,file);
fclose(file);
I even tried pulling it out of my code and isolating it to make sure there wasn't some other memory issue going on.
Thanks,
Matt