Calling operator new freezes psp!

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

Moderators: cheriff, TyRaNiD

Post Reply
theHobbit
Posts: 65
Joined: Sat Sep 30, 2006 5:26 am

Calling operator new freezes psp!

Post by theHobbit »

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.
PeterM
Posts: 125
Joined: Sat Dec 31, 2005 7:25 pm
Location: Edinburgh, UK
Contact:

Post by PeterM »

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

More debugging needed unfortunately...
Post Reply