PInvokeStackImbalance was detected

10/24/2011 01:56 Deсker#1
[Only registered and activated users can see links. Click Here To Register...]
____________________________________________

I seem to only have this problem when I'm using C# 2010. It gets to "logging into game server", then it freezes, and the error comes up within the project.

Here is the error line: Native.memcpy(p, p2, DataLen);

Here is the void:

Note: This is for NewestCOServer
10/24/2011 02:00 BaussHacker#2
Code:
    public unsafe class MSVCRT
    {
        [DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl, SetLastError = false)]
        public static extern unsafe void* MEMCPY(void* dest, void* src, int size);

        public static void CreateMEMCPY(byte[] Destination, byte[] Source, int Size)
        {
            fixed (byte* destination = Destination, source = Source)
                MEMCPY(destination, source, Size);
        }
    }
10/24/2011 02:04 Deсker#3
Thank you sir.

This can be closed now.
10/24/2011 02:09 abdeen#4
Quote:
Originally Posted by BaussHacker View Post
Code:
    public unsafe class MSVCRT
    {
        [DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl, SetLastError = false)]
        public static extern unsafe void* MEMCPY(void* dest, void* src, int size);

        public static void CreateMEMCPY(byte[] Destination, byte[] Source, int Size)
        {
            fixed (byte* destination = Destination, source = Source)
                MEMCPY(destination, source, Size);
        }
    }
i thanked you too because you help peoples ..

thanks :)