EasY,
DLL_Xxx events are executed within APCs, also have you factored in potentially odd TLS callback behavior?
--Iconic
Where to clean up stuff in injected DLL
Re: Where to clean up stuff in injected DLL
I've now changed the code so that only the first uninjection thread executes AutoUnhook. If there are more uninjection threads, in the moment when they try to call AutoUnhook, they're simply closed immediately with ExitThread. This way they can't even try to actually call FreeLibrary. Here's a beta build with this change:
http://madshi.net/madCollectionBeta.exe (2.7.4.4)
Can you confirm that the problem is solved with this build?
http://madshi.net/madCollectionBeta.exe (2.7.4.4)
Can you confirm that the problem is solved with this build?
Re: Where to clean up stuff in injected DLL
Yes, I can confirm this solved the issue. We haven't been able to reproduce it with the beta release in the previous post.
Thanks.
Thanks.
Re: Where to clean up stuff in injected DLL
Good to hear, thanks for the feedback.