Thanks to visit codestin.com
Credit goes to github.com

Skip to content

On Windows, load DLLs with LoadLibraryEx instead of LoadLibrary #378

@ochafik

Description

@ochafik

dyncall uses LoadLibrary, which does not support injection of a search path for dependent libraries.

JNA uses LoadLibraryEx with the LOAD_WITH_ALTERED_SEARCH_PATH option (see MSDN).

Workaround is to load the dependencies first or to declare them with @Library("MyLib", dependencies = { "MyDep1", "MyDep2" ... })

(issue reported in this discussion on the mailing-list)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions