Skip to content

System.ComponentModel.Win32Exception (299): Couldn't read 12 byte(s) from 0x5662FFCC. #30

@brenodss

Description

@brenodss

Hello, not sure if this is an error or i did a mistake. But im trying to call a function from a running process externally.
The function is: double __thiscall sub_2A1E7C(_DWORD *this, float a2, float a3)

 static public void Walk()
        {
            var swed = new Swed("Game");
            var moduleBase = swed.GetModuleBase("Game.exe");

            Process game = Mem.GetRagWindow("Game");
            var address = moduleBase + 0x29CE50; // function address
            MemorySharp sharp = new MemorySharp(game);

            // Execute code and get the return value as a Vector3 structure
            Vector3 vector = sharp[address].Execute<Vector3>(Binarysharp.MemoryManagement.Assembly.CallingConvention.CallingConventions.Thiscall, 17.50, -77.50);
            Console.WriteLine(vector);
        }

And im getting error: System.ComponentModel.Win32Exception (299): Couldn't read 12 byte(s) from 0x5662FFCC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions