ImGuiNET / ImGui.NET

An ImGui wrapper for .NET.
MIT License
1.89k stars 305 forks source link

PInvokeStackImbalance on ImGui.CreateContext() #72

Closed Trojaner closed 6 years ago

Trojaner commented 6 years ago

Are the P/Invokes up to date? Note: this started to happen after the autogen update

Additional information: Program runs in x86 and x86 cimgui was used. Issue happens at ImGuiNET.ImGuiNative::igCreateContext.

mellinoe commented 6 years ago

This is an oversight on my part, but it is simple to fix. The PInvoke declarations are missing CallingConvention = CallingConvention.Cdecl. I will fix this later tonight.

mellinoe commented 6 years ago

This should be fixed now, and a beta1 version was put on NuGet.