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

jna sometimes throw invalid memory access #344

Closed
Mai23 opened this issue Jul 1, 2014 · 1 comment
Closed

jna sometimes throw invalid memory access #344

Mai23 opened this issue Jul 1, 2014 · 1 comment

Comments

@Mai23
Copy link

Mai23 commented Jul 1, 2014

Hello!

I have a software which needs jna to interact with a custom dll. Normally it works properly but sometimes it throws invalid memory access when the software calls loadLibrary, but I dont know why. It seems that the dll breaks..

If I had any errors in the library, it will never work, won't it??

I will appreciate any help!

Thankss!!

Mai

@dblock
Copy link
Member

dblock commented Jul 1, 2014

Please use the mailing list for questions. Provide some detail on what the DLL does, the stack of the crash, etc.

@dblock dblock closed this as completed Jul 1, 2014
mstyura pushed a commit to mstyura/jna that referenced this issue Sep 9, 2024
…ess#344)

Motivation:

We need to delete the previous created global references to ensure we not leak native memory

Modifications:

Use the correct function to delete the global references

Result:

No native memory leak
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

No branches or pull requests

2 participants