Build Error - Unhandled Exception: EXCEPTION_ACCESS_VIOLATION 0x00007fff013de428

Hi all, I created a Character class and use it for my game. For some reason I get the above error when building and it crashes unreal. I believe it has something to do with the line of code here: GetCapsuleComponent()->OnComponentBeginOverlap.AddDynamic(this, &ATutorialCharacter::OnBeginOverlap);

When I comment this out, compile build then put it back in it seems to work fine for some reason. I could keep doing that but I would like to know how to fix this. I also cant seem to get my settings to save but thats for a different post I think! lol