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

How do I use a BeginCombo?

Open ArneDoering opened this issue 5 months ago • 1 comments

Every time I use BeginCombo the program just crashes. This is what I have:

        ImGui.BeginCombo("##dacombo", "davalue");
        ImGui.Selectable("davalue", true);
        ImGui.EndCombo();
$ dotnet run
LaserFillPattern: /home/runner/work/ImGui.NET-nativebuild/ImGui.NET-nativebuild/cimgui/imgui/imgui.cpp:12596: void ImGui::EndPopup(): Assertion `window->Flags & ImGuiWindowFlags_Popup' failed.

It certainly doesn't help that the path to imgui.cpp isn't a real path that I could open. That folder doesn't exist. /home/runner/ already doesn't exist.

ArneDoering avatar Aug 13 '25 07:08 ArneDoering

I figured it out, I have to check the result of BeginCombo.

ArneDoering avatar Aug 19 '25 08:08 ArneDoering