al_fopen XCode
bastianjoel

Hey,

somehow my application isn't able to find a txt file. I'm getting "Thread 6: EXC_BAD_ACCESS (code=1, address=0x554485244)"
The file is in a folder within the Supporting Files path and it's a cocoa project in Xcode.

Codeline:
ALLEGRO_FILE *file = al_fopen("rooms/raum0.txt", "r");

Chris Katko

Did you try:

ALLEGRO_FILE *file = al_fopen("./rooms/raum0.txt", "r"); //note ./

Thread #615106. Printed from Allegro.cc