Skip to content

System.AccessViolationException in BeginPlot #23

@gsuberland

Description

@gsuberland

I created a new project in vscode and added the NuGet packages, and copied the demo code over to test the setup. However, I get the following on startup:

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
   at DearImPlot.ImPlot+__Internal64.BeginPlot(System.String, IntPtr, DearImPlot.ImPlotFlags)
--------------------------------
   at DearImPlot.ImPlot.BeginPlot(System.String, System.Numerics.Vector2, DearImPlot.ImPlotFlags)
   at DearImPlot.ImPlot.BeginPlot(System.String)
   at TestApp.MyGameWindow.OnRenderFrame(OpenTK.Windowing.Common.FrameEventArgs)
   at OpenTK.Windowing.Desktop.GameWindow.DispatchRenderFrame()
   at OpenTK.Windowing.Desktop.GameWindow.Run()
   at TestApp.Program.Main(System.String[])

I can see from Process Hacker that the x86-64 glfw3.dll, imgui.dll, and implot.dll binaries (v1.8 / v0.14) are being loaded fine. These are the exact ones from the NuGet package.

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