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

Author Topic: Exception while loading SoundBuffer with SFML.net  (Read 2173 times)

0 Members and 1 Guest are viewing this topic.

Khepri

  • Newbie
  • *
  • Posts: 3
    • View Profile
Exception while loading SoundBuffer with SFML.net
« on: March 21, 2015, 06:57:35 am »
Hi,
I've created a C# project with Windows Forms and when I'm loading a SoundBuffer with its constructor, the program returns a BadImageException. I've tried changing the build mode to x86 and make sure I had the 32bit DLLs, but it fails anyway. Although, it works with x64, but I want my program to work on 32bit systems as well.
Is this a problem in SFML.Net bindings or in my project?

Thanks for your help.
Khepri

Dejan Geci

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Exception while loading SoundBuffer with SFML.net
« Reply #1 on: March 21, 2015, 09:00:21 am »
First of all, re-download the bindings from the site. You might have gotten a package which had included csfml-audio 64bit build by mistake. Also make sure that the platform target for you exe is x86 (in Visual Sudio - Project Properties -> Build -> Platform target = x86).