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
Clearing the ram
-
- Posts: 91
- Joined: Sun Feb 22, 2009 8:32 am
- Location: Melbourne Australia ZOMG
Clearing the screen doesn't clear the image used.
Code: Select all
free()
-
- Posts: 388
- Joined: Tue Aug 12, 2008 12:46 am
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"Wally wrote:What sort of advice is this... *shakes head*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.
Re: Clearing the ram
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.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