forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why power led flashes?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
melado



Joined: 18 Sep 2006
Posts: 7

PostPosted: Mon Sep 18, 2006 8:16 am    Post subject: Why power led flashes? Reply with quote

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
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Mon Sep 18, 2006 9:24 am    Post subject: Reply with quote

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
View user's profile Send private message
melado



Joined: 18 Sep 2006
Posts: 7

PostPosted: Mon Sep 18, 2006 7:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Mon Sep 18, 2006 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
melado



Joined: 18 Sep 2006
Posts: 7

PostPosted: Wed Sep 20, 2006 4:23 am    Post subject: Reply with quote

Yeah, thanks! The problem was that I was not setting any callbacks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group