MemoryModule
MemoryModule copied to clipboard
DLL_THREAD_ATTACH/DETACH message
There was a memory leak when the new thread created using the dll function loading from memory. I found that is an artical that: When the dll loaded from memory ,the DllMain() doesn't receive DLL_THREAD_ATTACH and DLL_THREAD_DETACH notifications. What‘s the reason, Could it be fixed?
The reference is:Loading Win32/64 DLLs "manually" without LoadLibrary() https://www.codeproject.com/tips/430684/loading-win-dlls-manually-without-loadlibrary