SFML community forums

Bindings - other languages => DotNet => Topic started by: Haikarainen on February 12, 2012, 06:05:59 pm

Title: .NET samples crash, problem with installing
Post by: Haikarainen on February 12, 2012, 06:05:59 pm
I'm basically a newborn when it comes to .net / visual studio etc. and I'm having problems both running the precompiled samples as well as using the .NET-binding in Visual Studio 10.


The samples just simply crash at startup, every single one of them. And for the using them; I try to add them to my toolbar but it complains about not having components in it that can be added to the toolbar. Haven't found a single guide on the subject.

Can anyone point me in the right direction plx?
[/code]
Title: .NET samples crash, problem with installing
Post by: Laurent on February 12, 2012, 06:13:59 pm
Quote
The samples just simply crash at startup, every single one of them

Any error message?
Title: .NET samples crash, problem with installing
Post by: Haikarainen on February 12, 2012, 07:33:21 pm
Started debugging them now, just extracted and launched from samples/bin directly.

First it didn't find the sfml assemblies, so I copied ./lib and ./extlib contents into the ./samples/bin, and now it complains about:

Code: [Select]
Could not load file or assembly 'Tao.OpenGl, Version=2.1.0.12, Culture=neutral, PublicKeyToken=1ca010269a4501ef' or one of its dependencies. The system cannot find the file specified.

Sadly there is almost 0 documentation on how to get this running. Any info on why I cant just add the dll's to the toolbar in visual designer?

Using Visual Studio 10, language of choice is C#
Title: .NET samples crash, problem with installing
Post by: Laurent on February 12, 2012, 07:57:32 pm
If you don't plan to use OpenGL then don't bother with the OpenGL samples, which requires Tao. Tao is outdated and might be hard to find -- well, in fact I have no idea, I wrote the sample a long time ago.
Title: .NET samples crash, problem with installing
Post by: Haikarainen on February 14, 2012, 10:41:47 pm
Quote from: "Laurent"
If you don't plan to use OpenGL then don't bother with the OpenGL samples, which requires Tao. Tao is outdated and might be hard to find -- well, in fact I have no idea, I wrote the sample a long time ago.


Complains even on the window sample :/ Do you use Tao internally?
Title: .NET samples crash, problem with installing
Post by: Laurent on February 14, 2012, 11:23:30 pm
No. Since it's a binding, SFML is the only thing that I need to use internally.

It complains on what (for the window sample)?
Title: .NET samples crash, problem with installing
Post by: Haikarainen on February 17, 2012, 07:49:16 pm
Quote from: "Laurent"
No. Since it's a binding, SFML is the only thing that I need to use internally.

It complains on what (for the window sample)?


Tao
Title: .NET samples crash, problem with installing
Post by: Laurent on February 17, 2012, 08:14:34 pm
Hmm sorry, the window sample is about OpenGL too, so it also uses Tao :D