Including ActorComponent header file causes crashes

#include “PlayerActorComponent” Is not a valid include.

You should always include only header files. If “PlayerActorComponent”is a custom class, try including #include “PlayerActorComponent.h” instead

I have

 Character cpp

 #include “PlayerActorComponent”


 Character .h

 UPlayerActorComponent* PlayerActorComp;

And it crashes every time this is compiled

Sorry that was a typo

It is PlayerActorComponent.h

Can you provide the crash log?

For some odd reason it is now working

I recompiled it many times **it was about the 10th ** that it didn’t lead to crash

I dont know why it did this