You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to call the dll output by unmanagedexportts from JNA.
However, all dlls that are dependent on dll must be placed in the same folder as JRE.
I think it would be nice if there was a way to go to load dll in the same folder as dll in a folder different from JRE. I would like you to tell me if there is something else in a different way.
It shouldn't be related for DllExport at all, because it only adds records into EXPORT_DIRECTORY (read more about PE32/PE32+).
That is, the final dynamic-link libraries(DLL) should contains the addresses of exported functions/variables as for your example from #25
You can try to use flag 0x00000200 (LOAD_LIBRARY_SEARCH_APPLICATION_DIR) - If this value is used, the application's installation directory is searched for the DLL and its dependencies.
or 0x00000400 via AddDllDirectory etc.
+ other specific way for JNA, and any own implementation of course.
By the way:
java.lang.Error: Invalid memory access
the problem can be for different architectures (x64/x86 ...). I don't remember specific error for java but it looks like incorrect access in memory by reading of incorrect addresses etc.
I want to call the dll output by unmanagedexportts from JNA.
However, all dlls that are dependent on dll must be placed in the same folder as JRE.
I think it would be nice if there was a way to go to load dll in the same folder as dll in a folder different from JRE. I would like you to tell me if there is something else in a different way.
java-native-access/jna#590
The text was updated successfully, but these errors were encountered: