Unreal crashes when i add a ActorIteration ?

Hey,

I wanted to get my Players Velocity but when i add :


for (TActorIterator<AActor> ActorItr(GetWorld()); ActorItr; ++ActorItr )

and then compile the Editor crashes. Any ideas why ?