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 

Calling operator new freezes psp!

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



Joined: 30 Sep 2006
Posts: 65

PostPosted: Fri Jan 26, 2007 8:03 am    Post subject: Calling operator new freezes psp! Reply with quote

Hi i'm working on porting the Game_Music_Emu library, but i'm having some problems. It seems everytime the operator new is called the psp just frezees. Well it works with simple variables like chars or ints, but when I use it with a c++ class it freezes.

For example:
int *intr_ptr = new int; OK
Music_Emu *emu = new Nsf_Emu; Don't work

Where Nsf_Emu is a class. Any help?

EDIT:
Problem Solved, thanks to blargg, It was something to do with the library endianes.


Last edited by theHobbit on Fri Jan 26, 2007 12:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
PeterM



Joined: 31 Dec 2005
Posts: 125
Location: Edinburgh, UK

PostPosted: Fri Jan 26, 2007 8:24 am    Post subject: Reply with quote

Is it a class which allocates a lot of memory in its constructor? (Or one which contains a large array?)

More debugging needed unfortunately...
Back to top
View user's profile Send private message Visit poster's website
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