| View previous topic :: View next topic |
| Author |
Message |
johnsto
Joined: 18 Jan 2006 Posts: 30
|
Posted: Tue Jun 06, 2006 4:11 am Post subject: pspDebugInstallErrorHandler causes 80020001 |
|
|
I'm betting this is really simple but it's driving me mad.
My game works fine, however I'm now trying to add an exception handler to catch an occasional crash that never happens when I want it to. I've done this by adding 'pspDebugInstallErrorHandler(NULL);' at the top of main() and included pspdebug.h.
When I try to run it however, I get the dreaded '80020001' message. Comment out that line, and it runs perfectly.
Appropriate Makefile lines:
| Code: | CFLAGS = -G4 -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-rtti
ASFLAGS = $(CFLAGS)
STDLIBS= -lds -losl -lpng -lz \
-lpspsdk -lpspctrl -lpspumd -lpsprtc -lpspgu -lpspaudiolib -lpspaudio -lm |
Help!
(Ta.) |
|
| Back to top |
|
 |
Ghoti
Joined: 31 Dec 2005 Posts: 288
|
Posted: Tue Jun 06, 2006 5:48 am Post subject: |
|
|
Hi,
i have sort of the same problem my game just gets black when i do the function you also use but i have had your problem:
what i did to solve it is in these two lines:
| Quote: | PSP_MODULE_INFO("Boxy 2", 0x1000, 1, 1);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER | THREAD_ATTR_VFPU); | Code: | mess around with these and your problem should be fixed.
if everything works for you please let me know how you did it cuase i can't seem to get it to work :( and i have also an bug which only comes someties when you play for 20 minutes :S
|
|
_________________ My PSP games:
Boxy II: http://www.ghoti.nl/boxyii.php
Elementals: http://www.ghoti.nl/Elementals.php |
|
| Back to top |
|
 |
johnsto
Joined: 18 Jan 2006 Posts: 30
|
Posted: Tue Jun 06, 2006 5:56 am Post subject: |
|
|
Hmm, using:
| Code: | PSP_MODULE_INFO("test", 0x1000, 1, 1);
PSP_MAIN_THREAD_ATTR(0); |
Sort of works - it loads up immediately to an exception screen saying "Coprocessor unusable", and a couple of the registers (s6 and s7) are "DEADBEEF"... |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Tue Jun 06, 2006 6:31 am Post subject: |
|
|
pspDebugInstallErrorHandler(NULL); would use the default
best for you to handle yourself ..just take a look at exception
sample in samples/debug and use your own like this simply
pspDebugInstallErrorHandler(myErrorHandler()); _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
Ghoti
Joined: 31 Dec 2005 Posts: 288
|
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Tue Jun 06, 2006 9:49 am Post subject: |
|
|
| Or just use psplink and be done with it ;) |
|
| Back to top |
|
 |
johnsto
Joined: 18 Jan 2006 Posts: 30
|
Posted: Tue Jun 06, 2006 4:33 pm Post subject: |
|
|
Installing my own exception handler (from another piece of code) gave the same black screen and shutdown.
I have been using psplink, but unfortunately my program finds it hilarious if it only crashes when I'm not ready for it - especially when I'm not debugging! |
|
| Back to top |
|
 |
Ghoti
Joined: 31 Dec 2005 Posts: 288
|
|
| Back to top |
|
 |
|