AddDynamic causing an exception to be thrown when editor loads

When I run my program I get a “Breakpoint Hit” as the editor loads. The breakpoint gets hit here:

// Sets default values

CollisionComponent->OnComponentHit.AddDynamic(this, &AFPSProjectile::OnHit);


It says “Unable to bind delegate” in DelegateSignatureImpl.inl.

Any ideas?

Had this same problem, I moved my AddDynamic to the BeginPlay instead, that worked.

PostInitializeComponents is probably the best place to do that