#687·Hazel

When the mouse clicks on the imgui interface, an error message appears: Exception thrown: read access violation.**window** was nullptr.

Author: hoyeziyuCreated Oct 26, 2024Updated Dec 9, 2024

When I clicked the imgui interface with the mouse, an error occurred; it prompted me Exception thrown: read access violation.windowwas nullptr.; I checked the error stack and found that the ImGuiButtonFlags_NoNavFocus macro definition was executed and ClearActiveID was executed. looking through the call stack it happens because the ClearActiveID() function is called,which inturn calls the SetActiveID() with 0 and NULL as arguments ,i.e. SetActiveID(0, NULL),And this original error occured because in the function SetActiveID

image image