Memory in PRXes

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

Moderators: cheriff, TyRaNiD

Post Reply
BigProMaN
Posts: 16
Joined: Fri Aug 29, 2008 9:37 pm

Memory in PRXes

Post by BigProMaN »

Hi all,

This is the situation :
I have an Eboot. In this Eboot, I loadStart two modules.
The first is a library which contains the libPNG.
The second is a normal module, where I use the functions which are in the library module loaded in the PBP.

In my main module, I can use all libPNG functions, but I've got a problem : I can use loadImage() function only twice. At the third call of this function, PSP freezes ! (path of the image is good)
What can I do to prevent that and increase memory available ?

Thanks in advance for any help :)
Excuse me for my English, I'm French.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Use less memory in the heap of the EBOOT.
BigProMaN
Posts: 16
Joined: Fri Aug 29, 2008 9:37 pm

Post by BigProMaN »

I tried PSP_HEAP_SIZE_KB(1024) but il still doesn't work ...
Excuse me for my English, I'm French.
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

You need to allocate more memory for the heap in which ever module is calling loadimage.
BigProMaN
Posts: 16
Joined: Fri Aug 29, 2008 9:37 pm

Post by BigProMaN »

In my Eboot I allocate 1024, and in my main module, 5*1024 ...
Still crashes.

Thanks for your help :)
Excuse me for my English, I'm French.
ne0h
Posts: 386
Joined: Thu Feb 21, 2008 2:15 am

Post by ne0h »

loadImage returns NULL if the no enough memory!
BigProMaN
Posts: 16
Joined: Fri Aug 29, 2008 9:37 pm

Post by BigProMaN »

So, What's the problem ?

Function works twice, why not three times if the problem doesn't come from memory ?

Thanks :p
Excuse me for my English, I'm French.
Post Reply