using the .NET client library in non-Unity projects

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

vooood
Posts: 45
Joined: 08 Oct 2010, 09:04
Location: Croatia
Contact:

using the .NET client library in non-Unity projects

Postby vooood » 31 Jan 2011, 15:22

Hi,

I tried to use the SFS2x client in a non-unity project (.NET 4 console app) and was able to connect but seems like events are not firing. I can see in the server log that a connection was established but the OnConnect event was not fired or my OnConnection function was not called.

What could be the issue or solution to this?
Music was my first love, and it will be my last
Music of the future, and music of the past
To live without my music would be impossible to do
In this world of trauma my music pulls me through
vooood
Posts: 45
Joined: 08 Oct 2010, 09:04
Location: Croatia
Contact:

Postby vooood » 31 Jan 2011, 15:33

never mind. i forgot to include the SmartFox.ProcessEvents() call in my frame refreshes.
Music was my first love, and it will be my last

Music of the future, and music of the past

To live without my music would be impossible to do

In this world of trauma my music pulls me through
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 31 Jan 2011, 17:44

You can also run it in "non-threadsafe" mode when handling these things yourself.

SmartFox.ThreadSafeMode <--- defaults to true

/T

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 83 guests