Need help setting up a 5165 server

07/17/2010 16:59 Zkiller110#1
i am getting this error, on the conquer sx source

Code:
PInvokeStackImbalance was detected
Message: A call to PInvoke function 'NewestCOServer!NewestCOServer.Native::memcpy' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
in this code and it highlights the part i have in red

Code:
        unsafe void WaitData(IAsyncResult Res)
        {
            try
            {
                StateObj S = (StateObj)Res.AsyncState;
                SocketError SE;
                try
                {
                    if (S.Sock.Connected)
                    {
                        uint DataLen = (uint)S.Sock.EndReceive(Res, out SE);

                        if (SE == SocketError.Success && DataLen != 0)
                        {
                            byte[] RData = new byte[DataLen];
                            fixed (byte* p = RData, p2 = S.Data)
                                [COLOR="Red"]Native.memcpy(p, p2, DataLen);[/COLOR]
                            if (DataHandler != null)
                                DataHandler.Invoke(S, RData);

                            S.Sock.BeginReceive(S.Data, 0, 1024, SocketFlags.None, new AsyncCallback(WaitData), S);
                        }
                        else if (DCHandler != null)
                            DCHandler.Invoke(S);
                    }
                    else if (DCHandler != null)
                        DCHandler.Invoke(S);
                }
                catch
                {
                    if (DCHandler != null)
                        DCHandler.Invoke(S);
                }
            }
            catch (Exception Exc) { Program.WriteLine(Exc); }
        }
can someone help
07/17/2010 21:22 Adziunia#2
some ppl before u had same problem and i think it might have something with low free cpu or memory to hold the server in debbug mode
07/18/2010 04:47 Zkiller110#3
but my CPU and Physical Memory are below 40% all the time i have 2.34 GHz CPU and 8GB ram im pretty sure its not that
07/22/2010 06:01 Zkiller110#4
do you guys seriously not know how to fix this error i mean come on im sure a lot of people have this problem too but none of you experts want to help with it, is it cause no one knows how to fix?
07/22/2010 13:40 Fish*#5
reboot pc, dont work?
07/23/2010 00:37 Zkiller110#6
ive tried everything on the forums here and more nothing works so far honestly im shocked no one has an answer to this problem if i was a better coder i would figure it out myself
07/25/2010 02:00 killersub#7
Quote:
Originally Posted by Zkiller110 View Post
ive tried everything on the forums here and more nothing works so far honestly im shocked no one has an answer to this problem if i was a better coder i would figure it out myself
If I were u I'd not even use dat source, it's full of bugs and errors(seeing it even tho its mysql, I have taken a close look at da source and its codes)...I guess dey released it here AND on 4b, still dere are so many threads about conquersx source havin DIS same prob. anyways, good-luck (;
07/25/2010 08:28 elite50#8
hey zkiller110 add my email [Only registered and activated users can see links. Click Here To Register...] i can help you
07/26/2010 00:09 Zkiller110#9
thanks to elite50 i now know how to fix this problem

you have to run the mysql with appserv and you cannot start the server through c#
07/26/2010 00:41 Fish*#10
lol then the source is a fail, if u cant run debug.
07/26/2010 01:31 killersub#11
Quote:
Originally Posted by grillmad View Post
lol then the source is a fail, if u cant run debug.
don't u think dat deserves a......

[Only registered and activated users can see links. Click Here To Register...]
07/26/2010 01:38 Fish*#12
Quote:
Originally Posted by killersub View Post
don't u think dat deserves a......

[Only registered and activated users can see links. Click Here To Register...]
Triple XD
hahaha
:facepalm::facepalm::facepalm: