What cause the psp to crash on exit?
I am not sure what causes it but the psp crash on exit sometimes.
Like it is tying to quit but quits too slow or something and just crashes.
Crashing On Exit?
check out the last Q/A in the FAQ: http://wiki.pspdev.org/psp:programming_faq.
It's not really clear though. Instead of calling sceKernelExitGame from your exit callback, try sending a signal to your main thread and perform the cleanup/exit from there (shutdown other threads, etc.)
btw, does anyone know in which context is called the exit callback? Is it in the kernel thread handling the home button, or in the callback thread? In the latter case, does it have to be put back to sleep or something like that?
It's not really clear though. Instead of calling sceKernelExitGame from your exit callback, try sending a signal to your main thread and perform the cleanup/exit from there (shutdown other threads, etc.)
btw, does anyone know in which context is called the exit callback? Is it in the kernel thread handling the home button, or in the callback thread? In the latter case, does it have to be put back to sleep or something like that?