Game freezes trying to install exception handler

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
maddogjt1
Posts: 13
Joined: Mon Jun 27, 2005 3:06 pm

Game freezes trying to install exception handler

Post by maddogjt1 »

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?
maddogjt1
Posts: 13
Joined: Mon Jun 27, 2005 3:06 pm

Post by maddogjt1 »

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.
Post Reply