@Crowz But a go is just a command away. In windbg you can do `bp myModule!myFunction ".print It got called!;gc"` I don't know what the equivalent is in gdb, though.
@jozefg http://stackoverflow.com/questions/7533321/error-when-compiling-some-simple-c-code tl;dr Try clang++ to make sure you are linking against the c++ runtime libraries.
@chris, That is how I was thinking about writing one -- and I still am. KatMouse injects a dll into every process so I don't like having it on my dev machines where there is always that question of "Did this module I know nothing about have something to do with this memory corruption?". Maybe I'm just paranoid.