Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

LockServer #55

@adrianwithah

Description

@adrianwithah

Currently, IClassFactory::LockServer is currently unimplemented for all our generated class factories. This should be implemented even for in-process servers.

It's primary purpose is to ensure that the server DLL is not unloaded prematurely, while clients still hold references to objects from the DLL. This usually occurs when clients call CoFreeUnusedLibraries

As it stands now, this premature unloading will never happen, as we do not expose DllCanUnloadNow for our in-process DLLs, meaning our DLL can only be unloaded when the client calls CoUninitialize. (this behaviour is stated here)

However, implementing this is crucial as it will allow developers to be efficient with memory usage.

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