"Mismatched version string!"


this code:
std::string window_title(window->Name); window_title = std::string(&window_title[0] + window_title.find(".") + 1); window_title[window_title.find(".")] = '\0';
is causing me to crash in the function DebugCheckVersionAndDataLayout


maybe the “window” pointer is null ?



The code you posted and DebugCheckVersionAndDataLayout() are unrelated.
The macro IMGUI_CHECKVERSION() calls DebugCheckVersionAndDataLayout() which verify that the version of imgui the function was compiled for is the same version as the caller function was compiled for.