| View previous topic :: View next topic |
| Author |
Message |
BigProMaN
Joined: 29 Aug 2008 Posts: 16
|
Posted: Tue Jan 13, 2009 10:10 pm Post subject: Memory in PRXes |
|
|
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. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Jan 14, 2009 8:55 am Post subject: |
|
|
| Use less memory in the heap of the EBOOT. |
|
| Back to top |
|
 |
BigProMaN
Joined: 29 Aug 2008 Posts: 16
|
Posted: Wed Jan 14, 2009 10:37 pm Post subject: |
|
|
I tried PSP_HEAP_SIZE_KB(1024) but il still doesn't work ... _________________ Excuse me for my English, I'm French. |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Wed Jan 14, 2009 11:56 pm Post subject: |
|
|
| You need to allocate more memory for the heap in which ever module is calling loadimage. |
|
| Back to top |
|
 |
BigProMaN
Joined: 29 Aug 2008 Posts: 16
|
Posted: Thu Jan 15, 2009 1:41 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Thu Jan 15, 2009 1:45 am Post subject: |
|
|
loadImage returns NULL if the no enough memory! _________________ Get Xplora! |
|
| Back to top |
|
 |
BigProMaN
Joined: 29 Aug 2008 Posts: 16
|
Posted: Thu Jan 15, 2009 2:02 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|