Update unlock dll file - #36
Conversation
|
OK, so why should we try to |
|
2 seconds is to prevent Unity from getting stuck. This submission is to solve the problem that the dll file cannot be replaced after unloading, and Unity prompts that the file is occupied. |
|
Because when the reference count of the dll object in the system is greater than 0, the file handle will not be released. You can see this:freelibrary
|
|
What I want is to replace the dll file without closing Unity after the dll unload. |
Yes, ofc, but me and others were able to do that without your change.
Yes, I know, but because any given dll is loaded once, it's ref count is not greater than 1. Unless it is loaded in some other way, either manually with 'LoadLibrary', or likely in some unexpected way by Unity. I think we should first investigate why the upstream way does not work for you. Do you have some additional assemblies? Do you have additional threads, coroutines? Maybe can you confirm this problem exists with some basic hello world project? |
|
Please help me. |
|
Please open an issue describing your problem and the steps you follow, I'll close this PR for now. |
|
Ok, thank you. Maybe I tried it the wrong way |
No description provided.