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 

Clearing the ram

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



Joined: 28 Mar 2009
Posts: 61

PostPosted: Tue Aug 11, 2009 6:31 am    Post subject: Clearing the ram Reply with quote

Is there anyway to clear the memory during an homebrew, i think my app is using up all the ram and keeps crashing so i think need to empty it. is there any way?
thanks

btw: my code involves alot of blitting images and using pspdebugscreenclear to clear the screen. thanks
Back to top
View user's profile Send private message Visit poster's website
slasher2661996



Joined: 22 Feb 2009
Posts: 91
Location: Melbourne Australia ZOMG

PostPosted: Tue Aug 11, 2009 7:14 am    Post subject: Reply with quote

Clearing the screen doesn't clear the image used.

Code:
free()
Back to top
View user's profile Send private message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Tue Aug 11, 2009 9:15 am    Post subject: Reply with quote

If you look around in some source codes, you might find a ram.h and a ram.c . It should support for getting the ram memory and clearing the ram.
_________________
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
Back to top
View user's profile Send private message AIM Address
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Tue Aug 11, 2009 9:41 am    Post subject: Reply with quote

Dariusc123456 wrote:
If you look around in some source codes, you might find a ram.h and a ram.c . It should support for getting the ram memory and clearing the ram.


What sort of advice is this... *shakes head*
Back to top
View user's profile Send private message AIM Address
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Tue Aug 11, 2009 5:33 pm    Post subject: Reply with quote

Wally wrote:
Dariusc123456 wrote:
If you look around in some source codes, you might find a ram.h and a ram.c . It should support for getting the ram memory and clearing the ram.


What sort of advice is this... *shakes head*

It's dariusc advice, which is along the lines of "I don't know anything about the question, but feel I should make a random comment anyway"
Back to top
View user's profile Send private message Visit poster's website
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Tue Aug 11, 2009 5:40 pm    Post subject: Re: Clearing the ram Reply with quote

PsPfReAK wrote:
Is there anyway to clear the memory during an homebrew, i think my app is using up all the ram and keeps crashing so i think need to empty it. is there any way?
thanks

btw: my code involves alot of blitting images and using pspdebugscreenclear to clear the screen. thanks


If you are malloc()'ing yourself then use free() when you are done. If you are using graphics.c from LUAplayer then it has corresponding free functions for its image loading functions.
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