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

imguizmo.NET memory exeption

Open Samma2009 opened this issue 2 years ago • 1 comments

hi after installing imguizmo.NET and trying to implement it i'm getting System.AccessViolationException, the following code is on the OnRenderFrame(FrameEventArgs e) void

controller.Update(this, (float)e.Time);

ImGui.Begin("test");
ImGui.Button("click");
ImGui.End();
// Initialize ImGuizmo (do not care about the variables they are for testing)
var view = OpenTK_TO_Numerics_matrix4x4(_camera.GetViewMatrix());
var projection = OpenTK_TO_Numerics_matrix4x4(_camera.GetProjectionMatrix());
var mt = System.Numerics.Matrix4x4.Identity;

// Start a new ImGui frame
ImGui.NewFrame();

// Call ImGuizmo.BeginFrame() right after ImGui.NewFrame()
ImGuizmo.BeginFrame();

//ImGuizmo.Manipulate(ref view, ref projection,OPERATION.TRANSLATE,MODE.WORLD,ref mt);

//imnodesNET.imnodes.BeginNodeEditor();

controller.Render();
Dear_ImGui_Sample.ImGuiController.CheckGLError("End of frame");

SwapBuffers();

Samma2009 avatar Aug 21 '23 07:08 Samma2009

Did you find the solution ? A sample for ImGuizmo would be helpful !

chingham avatar Mar 04 '24 08:03 chingham

Did you find the solution ? A sample for ImGuizmo would be helpful !

hi, yes i found a solution and turns out it was a bug of my bindings version

Samma2009 avatar Mar 07 '24 10:03 Samma2009