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 - Tenrag

Pages: [1]
1
Audio / Re: Crashing When Program Closes with sf::Music
« on: March 14, 2013, 06:56:46 pm »
I use compiler that comes with Visual Studio 2010 and dynamic linking

I tried release mode and there is no problem there, it runs without brackets.



2
Audio / Re: Crashing When Program Closes with sf::Music
« on: March 14, 2013, 06:34:41 pm »
I know it's the same thing but I checked multiple times by adding brackets, rebuilding ,running , removing brackets, rebuilding...
I assure you I didn't do anything in between.

I don't know why, but it's happening before my eyes.
But since it was reported then never mind.

3
Audio / Re: Crashing When Program Closes with sf::Music
« on: March 14, 2013, 06:18:08 pm »
Sorry for reviving an old topic but I just installed SFML 2.0 RC and
got exact the same problem for which I found solution.

I was getting error after just declaring sf::Music object like this:
#include <SFML/Audio.hpp>
int main()
{
    sf::Music m;
    return 0;
}
All I had to do was to add brackets:
#include <SFML/Audio.hpp>
int main()
{
    sf::Music m();
    return 0;
}
and it worked, no more access volation.

I guess it has to be something with  sf::Music destructor trying to free memory that was never allocated because error occurred always in the end of the program and object could be used normally without any problems until that moment.

Pages: [1]
anything