|
You last visited: Today at 00:02
Advertisement
PInvokeStackImbalance was detected
Discussion on PInvokeStackImbalance was detected within the CO2 Private Server forum part of the Conquer Online 2 category.
10/24/2011, 01:56
|
#1
|
elite*gold: 0
Join Date: Sep 2011
Posts: 112
Received Thanks: 37
|
PInvokeStackImbalance was detected
____________________________________________
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:
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)
Native.memcpy(p, p2, DataLen);
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); }
}
Note: This is for NewestCOServer
|
|
|
10/24/2011, 02:00
|
#2
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
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
|
#3
|
elite*gold: 0
Join Date: Sep 2011
Posts: 112
Received Thanks: 37
|
Thank you sir.
This can be closed now.
|
|
|
10/24/2011, 02:09
|
#4
|
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
|
Quote:
Originally Posted by BaussHacker
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
|
|
|
 |
Similar Threads
|
Visual Basic PInvokeStackImbalance wurde erkannt. ? wie beheben?
10/04/2010 - .NET Languages - 2 Replies
Hi,
ich wollte meinem Script eine Taste zuweisen F12 nur dann kommt
Ich habe im Internet mal nachgesehen aber nicht wirklich verstanden wsa die lösung ist.
Mein Scipt
|
[Rule]Was machen,wenn ein Hack Detected ist?What to do,if a Hack is Detected?
12/16/2009 - WarRock Hacks, Bots, Cheats & Exploits - 23 Replies
Nachdem ein Hack Detected ist,dann reicht es,wenn nur ein User "Detected" schreibt.Ein Guard oder Moderator wird euch auffordern,nichts mehr zu posten! Wenn ihr das trotzdem macht,dann wird erstmal eine Verwarnung als Folge sein!
After a Hack is Detected,then it's enough,if just 1 User writes "Detected".
A Guard or a Moderator will request to write nothing anymore in this Thread!
If this will done, a Warning will given.
|
MLE, CE, PCE all detected
09/28/2009 - Grand Chase - 2 Replies
so far for me today MLe Cheat Engine and PCHack enging have all been detected for me, are there any that are working?? i've tried the bypass aswell
|
UCE is detected!
07/11/2008 - Kal Online - 11 Replies
Hi!
Since the last update my UCE is detected by hackshield. Doesn't matter if I use Rev 8.3 or Ghost Killer...do I only have the prob or is it fixed now? And yes, I hided it with rootkits...it always worked!
Seit dem letzten Update erkennt Hackshield meine UCE...egal ob ich nun Rev Engine 8.3 oder Ghost Killer nehme. Hab nur ich das Problem oder ist das jetzt gefixt worden???
Hoffe mir kann jemand weiterhelfen!
|
All times are GMT +1. The time now is 00:02.
|
|