forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sdl standby problem

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
pensoffsky



Joined: 13 Nov 2005
Posts: 8

PostPosted: Mon Nov 14, 2005 7:18 am    Post subject: sdl standby problem Reply with quote

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
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Mon Nov 14, 2005 8:23 am    Post subject: Reply with quote

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
View user's profile Send private message
pensoffsky



Joined: 13 Nov 2005
Posts: 8

PostPosted: Thu Nov 17, 2005 3:44 am    Post subject: Reply with quote

thx
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group