Skip to content

Run-time un/loading DLL is crashing #208

Description

@Invander29

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
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions