[SDL] EXC_BAD_ACCESS on SDL_ConvertSurface Mac OS X
thecommodore6
robwettach at gmail.com
Sat Mar 8 15:41:31 PST 2008
Alvin Beach-2 wrote:
>
> If temp is null, doesn't that mean that your tiles.bmp didn't load? So,
> that's
> probably why things are running a muck.
>
> hat are you using for a debugger? Make sure your program is run in the
> same
> directory that contains tiles.bmp. Most debuggers have an option to se t
> the
> working directory. Your other option would be to put the absolute path for
> tiles.bmp. If temp is still null with the full path, than SDL_LoadBMP()
> might
> not like your file (??).
>
> Alvin
>
That was the issue. When I put in the full path to the file or when I put
the file in the same folder as the .app it worked. I guess I just need to
figure out how to reference the file where it's saved within the .app
structure, which is an Xcode/Apple question and not in the scope of this
list. (unless you happen to know)
Thank you,
-rob
--
View this message in context: http://www.nabble.com/EXC_BAD_ACCESS-on-SDL_ConvertSurface-Mac-OS-X-tp15753087p15922039.html
Sent from the SDL mailing list archive at Nabble.com.
More information about the SDL
mailing list