3F / DllExport

.NET DllExport with .NET Core support (aka 3F/DllExport aka DllExport.bat)
MIT License
938 stars 131 forks source link

Unload .net dll of c++ program #157

Closed Letomaniy closed 4 years ago

Letomaniy commented 4 years ago

Hello, there is one problem, loading .NET Dll into my program:

Screenshot_1

According to the code presented above, everything is loaded. All dll functions are performed correctly, but after FreeLibrary it is not unloaded (I tried to set a million instead of a triple in a loop, all the same). If you look in Process Hacker 2, we will see that the Dll is loaded twice, photo:

user619563_pic7140_1590367049

I no longer catch up with what to do, and tried to call GetModuleHandle and unload it, but it returns 0. Thanks in advance. In Process Hacker 2, an unloaded dll is marked as "Relocated DLL"

3F commented 4 years ago

duplicate of #118