Hi there.
To avoid that my dlls get locked Im hosting a new domain inside my target, which is wow : P..
In my code later on I do the Present hook for D3D11 etc etc.
However, here is my problem.
When I reload my domain I it crashes, with the error "The application domain in which the thread was running has been unloaded.".
I would guess that its because wow is currently inside my present hook while I unload the domain. But Im kinda clueless about what to do about it.
Since the stuff is running in a different domain I cant really tell it to unload before I shut down the domain. If I try to unload inside deconstructors it still crashes. The only thing I can think of right now is communicating with my code using some sort of interprocess communication, wait for it to release all stuffs, and then unload the domain. But this feels really not like the best solution... And I figured Im not the first one using this approach ( searched the forum for alternative domain ), but I have yet to find someone with the similar problem?
Anyone who have any bright ideas of how I should approach this problem?
I hope you understand what I'm trying to say hereThank you