Hi,
I’m trying to use tasks, but i’m consistantly getting ACCESS VIOLATION in tasks i launch, a few seconds after PIE shutdown.
How do you properly shutdown all these tasks?
I’ve tried to call stuff from GameInstance().OnDestroyed & PlayerController().OnDestroyed events, like :
FTaskGraphInterface::Get().ProcessThreadUntilIdle(ENamedThreads::AnyThread);
FTaskGraphInterface::Get().RequestReturn(ENamedThreads::AnyThread);
FTaskGraphInterface::Shutdown();
Nothing works.
Do i have to store all tasks i launch and use FTaskGraphInterface::Get().WaitUntilTasksComplete(taskarray)?
Is there a simpler way to do this? why isn’t it automatic by default? am i missing something?
Regards