Skip to content

Prevent windows library unloading at process termination.#275

Open
Kerilk wants to merge 1 commit into
KhronosGroup:mainfrom
Kerilk:fix-windows-unloading
Open

Prevent windows library unloading at process termination.#275
Kerilk wants to merge 1 commit into
KhronosGroup:mainfrom
Kerilk:fix-windows-unloading

Conversation

@Kerilk
Copy link
Copy Markdown
Contributor

@Kerilk Kerilk commented May 7, 2026

DLL unloading at process de-initialization should be avoided:

Similarly, the entry-point function must not call the FreeLibrary function (or a function that calls FreeLibrary) during process termination, because this can result in a DLL being used after the system has executed its termination code.

https://learn.microsoft.com/en-us/windows/win32/dlls/dllmain

@Kerilk Kerilk requested a review from bashbaug May 7, 2026 09:15
@bashbaug bashbaug requested a review from joselopeqti May 12, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants