| View previous topic :: View next topic |
| Author |
Message |
melado
Joined: 18 Sep 2006 Posts: 7
|
Posted: Mon Sep 18, 2006 8:16 am Post subject: Why power led flashes? |
|
|
Hi.
I'm a newbie programming some homebrew, and I have a question. Why, if I switch off my PSP when my program is running, the power led flashes like 5-6 times before powering off? What does this depend on?
Other programs don't do this...
Thanks for your help! |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Mon Sep 18, 2006 9:24 am Post subject: |
|
|
| This is normal... It's the psp system which kills the application and cleans up the mess it has made, while waiting for threads for finish... |
|
| Back to top |
|
 |
melado
Joined: 18 Sep 2006 Posts: 7
|
Posted: Mon Sep 18, 2006 7:19 pm Post subject: |
|
|
| adrahil wrote: | | This is normal... It's the psp system which kills the application and cleans up the mess it has made, while waiting for threads for finish... |
Well, I guessed it was totally normal. But my question is why does my program does this? There are many applications over there that don't do this. Maybe something about callbacks?
Thanks! |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Mon Sep 18, 2006 8:53 pm Post subject: |
|
|
Well, did you add any exit callbacks? If you did, did you free all the (*)alloc-ed vars or delete all the new-ed objects?
This generally happens if an app doesn't have a proper exit handling: callbacks and memory cleanup. |
|
| Back to top |
|
 |
melado
Joined: 18 Sep 2006 Posts: 7
|
Posted: Wed Sep 20, 2006 4:23 am Post subject: |
|
|
| Yeah, thanks! The problem was that I was not setting any callbacks :) |
|
| Back to top |
|
 |
|