NogginBops / ImGui.NET_OpenTK_Sample

A sample project showing an ImGui (using ImGui.NET) renderer for OpenTK in C#
106 stars 27 forks source link

System.AccessViolationException in ImGuiController.cs #21

Closed Fynn93 closed 2 years ago

Fynn93 commented 2 years ago

If you build this project & start it, you will get a System.AccessViolationException from ImGuiController.cs

Please fix this!

Thank you 😊

NogginBops commented 2 years ago

What branch of this repo are you using? What OS are you running on? What graphics card do you have?

Fynn93 commented 2 years ago
  1. opentk4.0
  2. Windows 11
  3. Nvidia Geforce 840M
NogginBops commented 2 years ago

Ok, can you tell me where in the code it crashes?

Fynn93 commented 2 years ago

Should be this line https://github.com/NogginBops/ImGui.NET_OpenTK_Sample/blob/df03faef260d7cddff07cae2c74f75390bbe34be/Dear%20ImGui%20Sample/ImGuiController.cs#L68

NogginBops commented 2 years ago

Are your drivers up to date and does your drivers support OpenGL 4.5? The current opentk4.0 branch uses opengl 4.5 features that might not be available, if that is the case I would recommend you to either test the opentk4.0-dev branch which only requires opengl 3.3.

Fynn93 commented 2 years ago

I will try that. Thank you.

Fynn93 commented 2 years ago

Okay works now!