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 

Game freezes trying to install exception handler

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



Joined: 27 Jun 2005
Posts: 13

PostPosted: Tue Jul 05, 2005 4:53 am    Post subject: Game freezes trying to install exception handler Reply with quote

I've tried to install an exception handler in my project following the code in the exception handler sample (in SVN), but whenever i run the line

pspDebugInstallErrorHandler(MyExceptionHandler);

the game freezes and the psp rebooots. I haven't changed anything, so I doubt that it's a bug that I've introduced. Are there any special project parameters that I have to set to make sure exception handlers work?
Back to top
View user's profile Send private message
maddogjt1



Joined: 27 Jun 2005
Posts: 13

PostPosted: Tue Jul 05, 2005 5:27 am    Post subject: Reply with quote

Well, I solved my own problem.

By changing the line
PSP_MODULE_INFO("MYGAME", 0, 1, 1);

to

PSP_MODULE_INFO("MYGAME", 0x1000, 1, 1);

I was able to get the exception handler installed. Once I did this, I realized that the my exit callback wasn't getting hit when I chose to exit the game (ie, I could bring up the home screen, but pressing yes did nothing). I then moved the code to setup my callbacks to after I install the exception handler and things work fine now.

The PSP_MODULE_INFO parameter that is necessary whould probably be documented in the sample since it is rather easy to miss the difference. Also, I don't know why my exit callback doesn't seem to work if installed before the exception handler, but it does in the sample.
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