Results 1 to 1 of 1
Thread: TS3 SDK3 on VS 2010 IDE
14-12-2011, 02:00 #1-= TeamSpeak User =-
- Join Date
- Dec 2011
TS3 SDK3 on VS 2010 IDE
I apologize in advance if this was already addressed but I have been looking on the forums for a while and I haven't found the answer. The C# server examples provided in the SDK work very well using VS2008 IDE on x86 or x64. The code also works in my project that I built using VS 2010 IDE but only when I run the .exe not through the IDE.
Its really strange and I haven't seen something like this before. I tried x86 and x64 settings on VS 2010 and it has the same results. But if I run the .exe from the debug\bin folder it works just fine. It gives me a Pinvoke stack balance issue running it from within the VS 2010 IDE. Does anyone have a suggestion or know if its possible to fix this?
/* Initialize server lib with callbacks */
uint error = ts3server.ts3server_initServerLib(ref cbs, LogTypes.LogType_FILE | LogTypes.LogType_CONSOLE | LogTypes.LogType_USERLOGGING, null);
I pasted the line from which it occurred above. It turns out it has to do with the .NET 4.0 Marshall stuff? Anyhow after searching Google for many hours a way to fix it apparently at the cost of a slight performance hit. Add this to your app.config file:
Last edited by Tron86; 14-12-2011 at 03:01.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By quirx in forum Server SupportReplies: 12Last Post: 03-02-2011, 08:33
By Sharaak in forum Server SupportReplies: 3Last Post: 15-11-2010, 11:54
By Ishark in forum LinuxReplies: 3Last Post: 27-04-2010, 10:24
By ScP in forum ArchiveReplies: 5Last Post: 02-01-2010, 16:06
By hase :) in forum General QuestionsReplies: 2Last Post: 25-12-2009, 23:28