Sure
.
When I talk about attach I refer to my detours being applied and my memory class being set to write to the selected WoW process. I maybe should try to express a bit more clear here, sorry.
Well more about the problem: It happens on an altered (detours applied) aswell an unaltered WoW process. Sadly I cant provide any crash dump since this error is happening only like 1 time every 24 hours (but we all strive to perfection dont we
).
As soon as it happens again I will def. update the thread with a good log.
What I did for the moment:
Implemented a state checking if WowError.exe exists and if it does retrieve its parent pid. If the parent pid matches to the WoW instance my bot is working with I close the corresponding WowError.exe aswell the client itself and continue with opening a new client, attaching my detours etc.
That one was a good help:
c# - How to get parent process in .NET in managed way - Stack Overflow
c# - How can I get the PID of the parent process of my application - Stack Overflow