ImGuiNET / ImGui.NET

An ImGui wrapper for .NET.
MIT License
1.85k stars 300 forks source link

MemoryAccessViolation #93

Closed SFBdragon closed 5 years ago

SFBdragon commented 5 years ago

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

Using Windows 10 64bit and respective cimgui.dll.

mellinoe commented 5 years ago

Hi @sfbdragon, can you provide the code that is failing? Usually an error like that indicates that you aren’t calling the ImGui functions in the correct order. Can you test the sample projects in this repository and see if those work for you?

SFBdragon commented 5 years ago

Sorry, I realised I forgot to call RebuildFontAtlas(). Works perfectly now, thanks for the wrapper!