Community Forums Today's Posts     Member List     Archive    
Results 1 to 1 of 1
  1. #1
    Join Date
    Dec 2011
    Posts
    4

    Cool 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?

    /* Initialize server lib with callbacks */
    uint error = ts3server.ts3server_initServerLib(ref cbs, LogTypes.LogType_FILE | LogTypes.LogType_CONSOLE | LogTypes.LogType_USERLOGGING, null);
    ****EDIT****

    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:

    <runtime>
    <NetFx40_PInvokeStackResilience enabled="1"/>
    </runtime>
    Courtesy of: http://codenition.blogspot.com/2010/...t-40i-beg.html
    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

  1. [Resolved] TS3 Server automagically connecting to 194.97.114.3:2010
    By quirx in forum Server Support
    Replies: 12
    Last Post: 03-02-2011, 08:33
  2. BT Home Hub (Newest 15/11/2010)
    By Sharaak in forum Server Support
    Replies: 3
    Last Post: 15-11-2010, 11:54
  3. TS3 on Mandriva 2010.0 (32-bit)
    By Ishark in forum Linux
    Replies: 3
    Last Post: 27-04-2010, 10:24
  4. Best Wishes for 2010 New Year!
    By ScP in forum Archive
    Replies: 5
    Last Post: 02-01-2010, 16:06
  5. NPO Licence expires xx december 2010
    By hase :) in forum General Questions
    Replies: 2
    Last Post: 25-12-2009, 23:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •