Hello, when I use LoadLibrary (Windows 10, v141) to open dll file, everything works, when I unload it using FreeLibrary, nothing happens, but when application is exiting, it crashes. Dll is compiled with mimalloc-static and does nothing, just includes mimalloc-new-delete.h.
Example:
int main() {
const auto handle = LoadLibrary(L"Foo.dll");
FreeLibrary(handle);
return 0; // <-- crash is here, not in FreeLibrary function
}
Hello, when I use LoadLibrary (Windows 10, v141) to open dll file, everything works, when I unload it using FreeLibrary, nothing happens, but when application is exiting, it crashes. Dll is compiled with mimalloc-static and does nothing, just includes
mimalloc-new-delete.h.Example:
int main() {const auto handle = LoadLibrary(L"Foo.dll");FreeLibrary(handle);return 0; // <-- crash is here, not in FreeLibrary function}