| View previous topic :: View next topic |
| Author |
Message |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Thu Aug 03, 2006 4:22 am Post subject: Prob. wuth libpng and prx |
|
|
hello, i have some prob's with libpng in my module.
If i compile it as .elf, no problem i can load large png, but when i compile it as a module i can only load small png like 10ko.
Maybe someone have a solution to this ?
Sorry for my poor english. |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Thu Aug 03, 2006 4:33 am Post subject: |
|
|
Unless you specify otherwise, prx modules are given a smaller stack/heap space, whereas elfs are just given the whole chunk of memory that is available. _________________ Shoot Pixels Not People!
Makeshift Development |
|
| Back to top |
|
 |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Thu Aug 03, 2006 4:35 am Post subject: |
|
|
Hum ok. I have tried to compile it with
| Code: | | PSP_HEAP_SIZE_KB(0); |
but it dont work better.
I also noticed that when i load a 480x272 png, only 1mb of memory left, it dont seems to be normal ? |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Thu Aug 03, 2006 4:41 am Post subject: |
|
|
Is zero really an appropriate heap size? ... _________________ Shoot Pixels Not People!
Makeshift Development |
|
| Back to top |
|
 |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Thu Aug 03, 2006 4:42 am Post subject: |
|
|
| I thought 0 would mean no limit hehe be it dont seems:x |
|
| Back to top |
|
 |
|