Skip to content

System.OverflowException "windows 11" #181

@lavrenc0v

Description

@lavrenc0v

I have a problem that my code works on windows 10 without problems, but on my laptop with windows 11 the code gives System.OverflowException . Why does this happen? Can someone help me?

Code: using Memory;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace panel_c__v._01
{
public partial class Form1 : Form
{
Mem memory = new Mem();
public Form1()
{
InitializeComponent();
}

private void label2_Click(object sender, EventArgs e)
{

}

private async void guna2Button1_Click(object sender, EventArgs e)
{
    if (Process.GetProcessesByName("HD-Player").Length == 0)
    {
        status.Text = "Emulator Not Found";
        Console.Beep(240, 300);
    }
    else
    {
        //Type Here Waiting Status
        status.Text = "Wait...";
        string search = "CC 3D 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F 33 33 13 40 00 00 B0 3F 00 00 80 3F";
        string replace = "CC 3D 06 00 00 00 00 00 80 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 33 33 33 13 40 00 00 B0 3F 00 00 80 3F";

        bool k = false;
        memory.OpenProcess("HD-Player");

        int i2 = 22000000;
        IEnumerable<long> wl = await memory.AoBScan(search, writable: true);
        string u = "0x" + wl.FirstOrDefault().ToString("X");
        if (wl.Count() != 0)
        {
            for (int i = 0; i < wl.Count(); i++)
            {
                i2++;
                memory.WriteMemory(wl.ElementAt(i).ToString("X"), "bytes", replace);
            }
            k = true;
        }

        if (k == true)
        {
            Console.Beep(400, 300);
            status.Text = "INJECTED SNIPER SWITCH";
        }
        else
        {
            status.Text = "SNIPER SWITCH FAILD";
            Console.Beep(240, 300);
        }
    }
}

}
}

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