How spawn UCableComponent in runtime?

i use :

	Cable = NewObject<UCableComponent>(this,UCableComponent::StaticClass(), FName("Cable"));
	
	if (Cable)
		 {
		     Cable->RegisterComponent();
			 Cable->AttachTo(GetRootComponent(), NAME_None);
         }

but an unreal crash.
is this cause UCableComp is plugin ?