Access Violation on TArray::Add in actor component
I get this error when I start the game in the editor
Access violation - code c0000005 (first/second chance not available) UE4Editor_SwordTest_5676!UPlayerActionComponent::AddAction() [e:_unreal_projects\swordtest\source\swordtest\playeractioncomponent.cpp:22] UE4Editor_SwordTest_5676!APlayerCharacter::BeginPlay() [e:_unreal_projects\swordtest\source\swordtest\characters\playercharacter.cpp:86] UE4Editor_Engine!AActor::DispatchBeginPlay() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\engine\private\actor.cpp:3160]
Here's the relevant code
It doesn't only crash on
and now it crashes again after recompiling even though I didn't change the code.
Hey there if you do it as a local variable in the playercharacter constructor, does it still happen?
answered Jan 21 '18 at 11:28 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here