For a while now I was getting random crashes during playtime. This error only occurred once projectiles were introduced to the project; upon where sometimes the game would crash at random when trying to spawn a projectile. I tried to attach a debugger to the project but every time I do this, visual studio sits with a loading symbols dialogue box for over 10 minutes.
Now this problem has gone to an extreme level. After implementing the firing status enum to the firing condition, despite this extended behavior working fine, when I fire to spawn a projectile I get this freeze/crash every time. The behavior of the program is identical except in the condition in witch a projectile is spawned or not.
I don’t see any new nullptr’s that could be causing this as
if (FiringState != EFiringStatus::Reloading)
is the only thing that has changed in my firing method
If someone wants to take a look and attempt to run a debugger on it that would help alot.
I actually just tried taking off all behavior in the fire method, which makes things even more confusing since it operates the same way as it had before… It is very hard to narrow down the problem since as far as I know I protected all the pointers, it was working before this minor change, though before the minor change, there was still the odd problem of it randomly crashing, only this time it is persistent. Very encumbering and mind boggling; I dont even know if it is only on my PC since before the crashes were close to random. This time it should be consistent though since the problem should be seen right away when trying to firing a weapon. (or if an AI tank fires, that will crash it too)