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

Author Topic: Crash in SoundBuffer destructor  (Read 3963 times)

0 Members and 1 Guest are viewing this topic.

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Crash in SoundBuffer destructor
« 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;



Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Crash in SoundBuffer destructor
« Reply #1 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 :)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Crash in SoundBuffer destructor
« Reply #2 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.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Crash in SoundBuffer destructor
« Reply #3 on: November 30, 2015, 03:41:40 pm »
Sure, see the issue discussion here:
https://github.com/SFML/SFML/pull/836
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

sorum40

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Crash in SoundBuffer destructor
« Reply #4 on: November 30, 2015, 07:15:10 pm »

 

anything