forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Memory in PRXes

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
BigProMaN



Joined: 29 Aug 2008
Posts: 16

PostPosted: Tue Jan 13, 2009 10:10 pm    Post subject: Memory in PRXes Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Jan 14, 2009 8:55 am    Post subject: Reply with quote

Use less memory in the heap of the EBOOT.
Back to top
View user's profile Send private message AIM Address
BigProMaN



Joined: 29 Aug 2008
Posts: 16

PostPosted: Wed Jan 14, 2009 10:37 pm    Post subject: Reply with quote

I tried PSP_HEAP_SIZE_KB(1024) but il still doesn't work ...
_________________
Excuse me for my English, I'm French.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Wed Jan 14, 2009 11:56 pm    Post subject: Reply with quote

You need to allocate more memory for the heap in which ever module is calling loadimage.
Back to top
View user's profile Send private message
BigProMaN



Joined: 29 Aug 2008
Posts: 16

PostPosted: Thu Jan 15, 2009 1:41 am    Post subject: Reply with quote

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
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Thu Jan 15, 2009 1:45 am    Post subject: Reply with quote

loadImage returns NULL if the no enough memory!
_________________
Get Xplora!
Back to top
View user's profile Send private message
BigProMaN



Joined: 29 Aug 2008
Posts: 16

PostPosted: Thu Jan 15, 2009 2:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group