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

zlib.dll szip.dll hdf5.dll and hdf5_hl.dll are being used by another process #124

Open
cuiocean opened this issue Aug 9, 2017 · 1 comment

Comments

@cuiocean
Copy link

cuiocean commented Aug 9, 2017

When the unit test of my own method using HDF.PInvoke is executed, cleaning the solution will raise the error "Unable to delete file "\Hdf5.Tests\bin\Debug\bin64\zlib.dll". Access to the path '\Hdf5.Tests\bin\Debug\bin64\zlib.dll' is denied. "

Checking out the source code of HDF.PInvoke, running the unit tests and cleaning solution, will give the same error.

@hpbieker
Copy link

hpbieker commented Dec 9, 2017

The reason for this is that the library loades the dlls when running, and that they are never unloaded. I guess killing the test execution process should 'fix' this.

Is there a way to unload a native dll? In that case the unloaded cloud be added to a Dispose() method of the H5 class?

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