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 

Memory problem

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



Joined: 13 Apr 2006
Posts: 12

PostPosted: Thu Apr 13, 2006 10:20 pm    Post subject: Memory problem Reply with quote

i have coded a little app,

problem is, that it uses more an more memory, even if u do the same again ...

--> result, when memory is full, the app hangs ...

is there a way to clear the memory, and if can someone pls tell me how ...

i think this is caused by the pngs i am reloading ...
Back to top
View user's profile Send private message
weak



Joined: 13 Jan 2005
Posts: 114
Location: Vienna, Austria

PostPosted: Thu Apr 13, 2006 10:43 pm    Post subject: Reply with quote

most likely you're not freeing the memory allocated for the image data.

you should read a book/tutorial about dynamic memory allocation in c/c++ if you're not familiar with the concept.
Back to top
View user's profile Send private message
TheHorst



Joined: 13 Apr 2006
Posts: 12

PostPosted: Thu Apr 13, 2006 11:19 pm    Post subject: Reply with quote

got it ... tks anyways ...
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