| View previous topic :: View next topic |
| Author |
Message |
PsPfReAK
Joined: 28 Mar 2009 Posts: 61
|
Posted: Tue Aug 11, 2009 6:31 am Post subject: Clearing the ram |
|
|
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 |
|
 |
slasher2661996
Joined: 22 Feb 2009 Posts: 91 Location: Melbourne Australia ZOMG
|
Posted: Tue Aug 11, 2009 7:14 am Post subject: |
|
|
Clearing the screen doesn't clear the image used.
|
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Tue Aug 11, 2009 9:15 am Post subject: |
|
|
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 |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Tue Aug 11, 2009 9:41 am Post subject: |
|
|
| 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 |
|
 |
jbit Site Admin

Joined: 28 May 2005 Posts: 293 Location: København, Danmark
|
Posted: Tue Aug 11, 2009 5:33 pm Post subject: |
|
|
| 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 |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Tue Aug 11, 2009 5:40 pm Post subject: Re: Clearing the ram |
|
|
| 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 |
|
 |
|