ImGui.NET icon indicating copy to clipboard operation
ImGui.NET copied to clipboard

Access Violation With using ImGui.Begin

Open bennytrt opened this issue 2 years ago • 2 comments

Hello, I'm Experiencing an Access Violation error at ImGui.Begin

System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

My Code : `using System; using ImGuiNET; using Veldrid; using Vortice; using Vortice.Direct3D9;

class Program {

static void Main()
{
    ImGui.CreateContext();
    ImGui.StyleColorsDark();

    ImGui.Begin("Atonix - Gmod");

    ImGui.Text("TestTest6969");

    if (ImGui.Button("Click Me For Joe."))
    {
        Console.WriteLine("Joe's Great Ball");
    }

    ImGui.InputText("FiFaFo", IntPtr.Zero, 100, ImGuiInputTextFlags.EnterReturnsTrue, null);

    // commented out becuz i wanna see if i can use this for other stuff
    // ImGui.GetDrawData(); 

    ImGui.Render();

    System.Threading.Thread.Sleep(16);

    ImGui.End();

}

}`

bennytrt avatar Dec 01 '23 21:12 bennytrt

I'm also getting this error (.NET 8). This other issue here might be related.

https://github.com/aybe/DearImGui/issues/23

sanny-io avatar Dec 31 '23 23:12 sanny-io

.NET 8, MacBook Pro M2 Max

using ImGuiNET;

ImGui.CreateContext();
ImGui.StyleColorsDark();
ImGui.NewFrame();

crashed on ImGui.NewFrame().

sicusa avatar Jan 05 '24 06:01 sicusa