SFML community forums

Help => Audio => Topic started by: sorum40 on November 30, 2015, 01:17:59 pm

Title: Crash in SoundBuffer destructor
Post by: sorum40 on November 30, 2015, 01:17:59 pm
Hi All;

I am using SFML2.2 on windows 8.1.

When deleting sound buffers I am no longer using (for example on app exit), I sometimes get a crash when the
sf::SoundBuffer::~SoundBuffer() destructor is called, which seems to have triggered a heap corruption...

Any idea on what the issue is, and how to solve it please;

Thanks in advance;


Title: Re: Crash in SoundBuffer destructor
Post by: Nexus on November 30, 2015, 01:28:02 pm
Use the latest SFML version, we've recently fixed bugs related to that. You should always do that when reporting bugs :)
Title: Re: Crash in SoundBuffer destructor
Post by: sorum40 on November 30, 2015, 01:33:16 pm
Hi Nexus;

Thanks for the quick reply. Can you give me please more info on what the issue was?

Many thanks.
Title: Re: Crash in SoundBuffer destructor
Post by: Nexus on November 30, 2015, 03:41:40 pm
Sure, see the issue discussion here:
https://github.com/SFML/SFML/pull/836
Title: Re: Crash in SoundBuffer destructor
Post by: sorum40 on November 30, 2015, 07:15:10 pm
Sure, see the issue discussion here:
https://github.com/SFML/SFML/pull/836

Thank you.