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.


Topics - empezar

Pages: [1]
1
Hello!

I've searched Google and looked through this forum for solutions to my problem, but to no avail. A few people have had issues with exceptions when quitting, but they don't seem to have the same problem I have.

I'm getting the following exception when quitting:

Code: [Select]
First-chance exception at 0x774F604C (ntdll.dll) in InSpace.exe: 0xC0000005: Access violation reading location 0xFEEEFEF6.
Unhandled exception at 0x774F604C (ntdll.dll) in InSpace.exe: 0xC0000005: Access violation reading location 0xFEEEFEF6.

My call stack looks like this:
Code: [Select]
InSpace.exe!std::_Ref_count_obj<sf::Sound>::_Destroy() Line 944 C++
  InSpace.exe!std::_Ref_count_base::_Decref() Line 118 C++
  InSpace.exe!std::_Ptr_base<sf::Sound>::_Decref() Line 344 C++
  InSpace.exe!std::shared_ptr<sf::Sound>::~shared_ptr<sf::Sound>() Line 611 C++
  InSpace.exe!std::shared_ptr<sf::Sound>::`scalar deleting destructor'(unsigned int) C++
  InSpace.exe!std::allocator<std::shared_ptr<sf::Sound> >::destroy<std::shared_ptr<sf::Sound> >(std::shared_ptr<sf::Sound> * _Ptr) Line 608 C++
  InSpace.exe!std::allocator_traits<std::allocator<std::shared_ptr<sf::Sound> > >::destroy<std::shared_ptr<sf::Sound> >(std::allocator<std::shared_ptr<sf::Sound> > & _Al, std::shared_ptr<sf::Sound> * _Ptr) Line 731 C++
  InSpace.exe!std::_Wrap_alloc<std::allocator<std::shared_ptr<sf::Sound> > >::destroy<std::shared_ptr<sf::Sound> >(std::shared_ptr<sf::Sound> * _Ptr) Line 879 C++
  InSpace.exe!std::_Destroy_range<std::_Wrap_alloc<std::allocator<std::shared_ptr<sf::Sound> > > >(std::shared_ptr<sf::Sound> * _First, std::shared_ptr<sf::Sound> * _Last, std::_Wrap_alloc<std::allocator<std::shared_ptr<sf::Sound> > > & _Al, std::_Nonscalar_ptr_iterator_tag __formal) Line 82 C++
  InSpace.exe!std::_Destroy_range<std::_Wrap_alloc<std::allocator<std::shared_ptr<sf::Sound> > > >(std::shared_ptr<sf::Sound> * _First, std::shared_ptr<sf::Sound> * _Last, std::_Wrap_alloc<std::allocator<std::shared_ptr<sf::Sound> > > & _Al) Line 96 C++
  InSpace.exe!std::vector<std::shared_ptr<sf::Sound>,std::allocator<std::shared_ptr<sf::Sound> > >::_Destroy(std::shared_ptr<sf::Sound> * _First, std::shared_ptr<sf::Sound> * _Last) Line 1567 C++
  InSpace.exe!std::vector<std::shared_ptr<sf::Sound>,std::allocator<std::shared_ptr<sf::Sound> > >::_Tidy() Line 1628 C++
  InSpace.exe!std::vector<std::shared_ptr<sf::Sound>,std::allocator<std::shared_ptr<sf::Sound> > >::~vector<std::shared_ptr<sf::Sound>,std::allocator<std::shared_ptr<sf::Sound> > >() Line 946 C++
  InSpace.exe!Sound::~Sound() Line 7 C++
  [External Code]

I am using SFML version 2.3.1 on Visual Studio 2013.

I am using SFML_STATIC in preprocessor definitions.

I have included the dependencies in the following order:
sfml-audio-s-d.lib
sfml-system-s-d.lib
winmm.lib
openal32.lib
flac.lib
vorbisenc.lib
vorbisfile.lib
vorbis.lib
ogg.lib

I am using the -s versions for the release.

openal32.dll is placed in the project directory.

I should also note that I am only using SFML's sound engine. This is due to the game being a school project where we are supposed to learn the Win32 windows handling stuff (C++).

This is my code: http://paster.se/XECd6

Can you spot any obvious errors?

Pages: [1]