Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Array of sf::Music Causes Crash?  (Read 920 times)

0 Members and 1 Guest are viewing this topic.

Acumen

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Array of sf::Music Causes Crash?
« on: September 27, 2014, 02:23:44 am »
So using the newest snapshot (24 Sept 2014) openFromFile() causes a crash when using an array of sf:Music:

sf::Music* testMusic = new sf::Music[10];
testMusic[0].openFromFile("test.ogg");

Where this does not crash:

sf::Music testMusic;
testMusic.openFromFile("test.ogg");

Previously the array of sf::Music was fine. Is this intended? I could not find anything about sf::Music changing. Was I just lucky my code worked previously?

Acumen

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: Array of sf::Music Causes Crash?
« Reply #1 on: September 27, 2014, 02:35:27 am »
Ha not seconds after posting while trying to revert to my old properties I found I still was including the original source in one location. I should have given up earlier it would have saved me a bunch of head banging.

Sorry for the forum bloat! Feel free to deleting unless this might prevent someone else from adding more bloat in the future.

 

anything