SFML community forums

Bindings - other languages => DotNet => Topic started by: DaysShadow on May 30, 2011, 10:53:52 am

Title: SFML 1.6 Examples crash
Post by: DaysShadow on May 30, 2011, 10:53:52 am
Hi,

i wanted to start using SFML with C# but even the examples don't work.
I put all the libs and the extlibs in the samples/bin folder but they crash with the popup "post-fx.exe doesn't work anymore", for example.
What could cause this?

I've installed Visual Studio Express 2010 on a Windows 7 x64 Professional.
Hardware is up to date, so there shouldn't be any incompatabilitys.

Recompiling the example doesn't change anything, unfortunately.

I hope someone can help me here :)

Greetings
Title: SFML 1.6 Examples crash
Post by: Laurent on May 30, 2011, 11:04:44 am
Are you sure that you're not mixing 32 and 64 bits?
Title: SFML 1.6 Examples crash
Post by: DaysShadow on May 30, 2011, 11:24:24 am
Ehm, 1.6 does not have 32 and 64 bit libs, there is only one bunch of libs in libs and extlibs.
If they are 32bit libs, shouldn't they work anyway on a 64 bit system?

64 bit libs on a 32 bit system don't work but the other way round it should work.

Thanks for your help.
Title: SFML 1.6 Examples crash
Post by: Laurent on May 30, 2011, 11:38:27 am
Yes you're right, sorry (64 bits is supported in SFML 2 only).

Can you run a sample with the debugger, in order to know more about the error?
Title: SFML 1.6 Examples crash
Post by: DaysShadow on May 30, 2011, 11:44:06 am
post-fx sample

Crashes at the RenderWindow creation:

Code: [Select]
RenderWindow App = new RenderWindow(new VideoMode(800, 600), "SFML.Net PostFX");

Error Message is:

BadImageFormatException was not handled

It was tried to load a file of a wrong format (Exception of HRESULT: 0x8007000B)

I hope the translation is right, i've got the visual studio in german here.
Title: SFML 1.6 Examples crash
Post by: Laurent on May 30, 2011, 11:53:05 am
Have you tried to recompile SFML.Net?
Title: SFML 1.6 Examples crash
Post by: DaysShadow on May 30, 2011, 12:04:27 pm
Recompiled it but there is still the same error.