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
- Posts
- 4
TS3 SDK3 on VS 2010 IDE
Hello,
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?
****EDIT****/* 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:
Courtesy of: http://codenition.blogspot.com/2010/...t-40i-beg.html<runtime>
<NetFx40_PInvokeStackResilience enabled="1"/>
</runtime>Last edited by Tron86; 14-12-2011 at 03:01.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Resolved] TS3 Server automagically connecting to 194.97.114.3:2010
By quirx in forum Server SupportReplies: 12Last Post: 03-02-2011, 08:33 -
BT Home Hub (Newest 15/11/2010)
By Sharaak in forum Server SupportReplies: 3Last Post: 15-11-2010, 11:54 -
TS3 on Mandriva 2010.0 (32-bit)
By Ishark in forum LinuxReplies: 3Last Post: 27-04-2010, 10:24 -
Best Wishes for 2010 New Year!
By ScP in forum ArchiveReplies: 5Last Post: 02-01-2010, 16:06 -
NPO Licence expires xx december 2010
By hase :) in forum General QuestionsReplies: 2Last Post: 25-12-2009, 23:28


Reply With Quote