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

Author Topic: sf::music causes a crash?  (Read 3712 times)

0 Members and 1 Guest are viewing this topic.

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
sf::music causes a crash?
« on: August 31, 2012, 12:23:31 am »
hello
i'm having a strange issue when i try to create a music object.
the program runs fine, but at the finish, windows give a error message "test.exe stopped working"

all i have to do is write sf::Music test! a minimal example that reproduces the problem:

#include "SFML/Audio.hpp"
int main(){
    sf::Music test;
    return 0;
}

in a complete example, the music DOES play, and the program runs fine. for some reason, it occurs after the 'return 0' from main().

in the console output:
process returned 255 (0xFF)

is this normal? the program runs fine, so i don't know...
i'm running on windows 7 SP1, SFML 2.0rc, Code::Blocks 10.05

thanks in advance!
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: sf::music causes a crash?
« Reply #1 on: August 31, 2012, 12:31:28 am »
Hi

Please search before posting:
https://github.com/SFML/SFML/issues/30
Laurent Gomila - SFML developer

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: sf::music causes a crash?
« Reply #2 on: August 31, 2012, 01:03:13 am »
oops, sorry, i searched only this forum.  :-\

i'll wait, then. thanks.
Visit my game site (and hopefully help funding it? )
Website | IndieDB