Are you using a “debug” instead of “development” configuration in VS? I’ve found that you can’t really trust the debug output in VS when using a “development” configuration.
I solved the Crash, it was a matter of removing %s in the String when it didn’t have a value, but I still don’t understand why Visual Studio returns true when if (Actor) in that specific piece of code…
It’s the other way around, as Daniel Ricci pointed out, It is Development editor the one who has funny behaviour. Honestly I still don’t understand why. Thanks for your answer!
Is it possible that your pointer is a smart pointer handled in such a way that you need to call a function to check if its valid? Also can you try compiling your game under Debug Editor, if thats to slow you can always remove optimization in the PCH files.