Visual Studio compiles, but it doesn't...

HI, I got another problem with C++ and Visual Studio…
I’m using Visual Studio 2015 and Unreal Engine 4.10.4.

I’m using the third character template class and I’ve done some modifies…
I’m trying to use a function in Blueprint using cast of the c++ class but it doesn’t appear…
Now I’ve seen that if I remove a DebugScreen I was using, Unreal engine compile, but if I do Play, Screen Debug remains…
I’m sure there isn’t in code…so Unreal Engine doesn’t compile?

How can I resolve? please help me!!!

Is your function a UFunction and BlueprintCallable?

UFUNCTION(BlueprintCallable, Category = MyFunction)
void MyFunction();

yes:
Cattura.PNG