C++ classes compile in Visual Studio, but Unreal crashes on opening line

Ah! found the problem. I was constructing AMyActor PMesh instead of doing AMyActor* PMesh. facepalm