Hi everypony,
I've got a problem with a pointers to sf::Sound. I want to use a audio-management-class to handle all the sf::Sound and sf::Music.
This class puts all currently played sounds (and the music) in a map<unsigned int, sf::Sound*>, where the key is a random number. So I create a pointer to "new sf::Sound" and store both - the key and the pointer in the map.
But here's where the problem begins: My program terminates before the main-method is started! Usually my dbugger sets a breakpoint to the beginning of the main-method. (I even put a breakpoint to the first command manually) But these breakpoints will have no effect! The main-method simply does not start anymore!
So I commented out all methods of my Audio-Class und the includes.
Then I removed the comments one after the others. With the includes and the Header-file work properly. My program starts normally. Some methods work too. But as soon, as a method creates a pointer to a sf::Sound, the main program does not start anymore!
I also thied just "sf::Sound *s = new sf::Sound();". As soon as I I write one of this line, the program will not work anymore. Even if this method is NEVER called! "sf::Sound t()" works, but I need a sf::Sound, created with new...
Edit: I even tried "new sf::Sound();". This line will make my program not to start at all... Well... It starts, but it terminates before the main-method without any error-message.
Has someone seen something like that? O.o
Thanks,
Dodo
PS: Is use eclipse with mingw under Win7, 64 bit.