| View previous topic :: View next topic |
| Author |
Message |
pensoffsky
Joined: 13 Nov 2005 Posts: 8
|
Posted: Mon Nov 14, 2005 7:18 am Post subject: sdl standby problem |
|
|
hi,
i've written a program for the psp using the sdl library.
everything works fine except for one detail,
when the program is running i put the psp to sleep (powerbutton),
wake it up again, then the programm is running but it crashes after a short while with a bluescreen,
Exception - Adress load/inst fetch
EPC - 0895f950
Cause - 00000010
...
i identified the "offending routine" using psp-addr2line:
../newlib/libc/machine/mips/memcpy.c:72
i am using pspsdk, sdl 1.2.7?, sdl-image
thanks in advance! |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Mon Nov 14, 2005 8:23 am Post subject: |
|
|
When you suspend the PSP, the kernel closes all open file handles. It does not reopen them. Chances are your program was reading from a closed file which caused an exception somewhere else in your program.
A solution to this problem is to install your own power callback that can handle suspend events. I think there's sample code in PSPSDK that shows how to use it. |
|
| Back to top |
|
 |
pensoffsky
Joined: 13 Nov 2005 Posts: 8
|
Posted: Thu Nov 17, 2005 3:44 am Post subject: |
|
|
| thx |
|
| Back to top |
|
 |
|