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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SwatzZ

Pages: [1]
1
Audio / Re: Crashing When Program Closes with sf::Music
« on: May 13, 2013, 07:13:50 pm »
I did, but it isn't working though  :-\
My Code:
        sf::Music backgroundmusic();
        backgroundmusic().openFromFile("Music and Sound/Pokemon_Theme.ogg");
        backgroundmusic().setVolume(50);
        backgroundmusic().setLoop(true);
        backgroundmusic().play();

It's saing something about unresolved externals.

2
Audio / Re: Crashing When Program Closes with sf::Music
« on: May 13, 2013, 06:25:32 pm »
I've got the same problem. When closing the program, it opens a window which is saying:

Quote
First-chance exception at 0x005353cc in program.exe: 0xC0000005: Access violation reading location 0x01f5e6b0.

At the same time there's a code called free.c opening next to the main.cpp. There's a green arrow pointing at:
retval = HeapFree(_crtheap, 0, pBlock);
        if (retval == 0)
        {
            errno = _get_errno_from_oserr(GetLastError());
        }

I tried to reinstall sfml 2.0, but it didn't change. It works perfectly without sf::sound.

Pages: [1]