Hello (world?),
I'm try to call updatemodel() with using fasmdll_managed.dll, I have no errors to compile my project but when I try to execute, I get an error.
Error text
Assembly failed! Error code: -122; Error Line: 5
My code
Code:
public static uint updateModel()
{
uint CodeCaveUM = 0;
if (!isInitiale) Initialise();
{
CodeCaveUM = Wow.AllocateMemory();
fasm.Clear();
fasm.AddLine("push 1");
fasm.AddLine("push 1");
fasm.AddLine("call {0}", offset.UpdateModel);
fasm.AddLine("retn");
fasm.InjectAndExecute(Wow.ProcessHandle, CodeCaveUM, 0);
uint CodeCave = fasm.InjectAndExecute(CodeCaveUM);
Wow.FreeMemory(CodeCaveUM);
return CodeCave;
}
}
http://pastebin.com/m412f8449
Thread and process are open.
I have searched my error on many website but, I found nothing concerning a similar problem.
Any help is welcome =)
Cordially Sel3n.