Hi to all,
I'm lost with something that should be pretty easy to fix, but didn't found any reference anywhere.
Basically whenever I try to invoke a debugger action in response to an its own event, VS returns the error mentioned in the object.
It clearly says that the debugger actions should not be called while inside a debugger event, but I need to invoke these actions based on the debugger event type. So, it's impossible for me to avoid this.
From what I understand, it has something to do with the reentrancy check that VS does.
Strangely, if I run the functions on a new thread, everything works as expected although I'm pretty sure that doing so, soon or later, will result in something very bad and unexpected.
So, the question is simple: what's the standard and safe way to invoke the debugger functions in response to its events?
Thanks