Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It cannot load DLL when Chinese characters are in the Windows decompression path. #153

Open
weixinhum2023 opened this issue Nov 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@weixinhum2023
Copy link

weixinhum2023 commented Nov 21, 2024

Description error
Thanks to the author for his hard work, I recently found a small problem when using this library. When I use the compiled lib to load the fmu's dll file on Windows, if the path of the dll file contains Chinese characters, it cannot be loaded correctly.

Solution
Locate the file "...\fmi-library-3.0a4\src\Util\src\JM\jm_portability.c" and modify the jm_portability_load_dll_handle_with_flag function as follows to solve the problem.

Version
3.0.a4
Windows
VS2022

@weixinhum2023 weixinhum2023 added the bug Something isn't working label Nov 21, 2024
@weixinhum2023
Copy link
Author

weixinhum2023 commented Nov 21, 2024

I'm sorry, but this report concerns the same issue as #91, and I haven't seen it before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant