Why power led flashes?

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

Moderators: cheriff, TyRaNiD

Post Reply
melado
Posts: 7
Joined: Mon Sep 18, 2006 8:12 am

Why power led flashes?

Post by melado »

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!
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

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...
melado
Posts: 7
Joined: Mon Sep 18, 2006 8:12 am

Post by melado »

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!
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

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.
melado
Posts: 7
Joined: Mon Sep 18, 2006 8:12 am

Post by melado »

Yeah, thanks! The problem was that I was not setting any callbacks :)
Post Reply