 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
maddogjt1
Joined: 27 Jun 2005 Posts: 13
|
Posted: Tue Jul 05, 2005 4:53 am Post subject: Game freezes trying to install exception handler |
|
|
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 |
|
 |
maddogjt1
Joined: 27 Jun 2005 Posts: 13
|
Posted: Tue Jul 05, 2005 5:27 am Post subject: |
|
|
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 |
|
 |
|
|
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
|