Clearing the ram

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
PsPfReAK
Posts: 61
Joined: Sat Mar 28, 2009 9:02 am
Contact:

Clearing the ram

Post by PsPfReAK »

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
slasher2661996
Posts: 91
Joined: Sun Feb 22, 2009 8:32 am
Location: Melbourne Australia ZOMG

Post by slasher2661996 »

Clearing the screen doesn't clear the image used.

Code: Select all

free()
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

Post by Dariusc123456 »

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 - ?
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

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*
User avatar
jbit
Site Admin
Posts: 293
Joined: Sat May 28, 2005 3:11 am
Location: København, Danmark
Contact:

Post by jbit »

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"
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Re: Clearing the ram

Post by Torch »

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.
Post Reply