[FONT=&]If I understand correctly, it is unwise to spawn or destroy UObjects within FRunnables.
[FONT=&]Furthermore, if I understand correctly, it is unwise to modify UObjects within FRunnables.
[FONT=&]I’m wondering then why I’m getting a crash with the following code:
uint32 FNeedsRunnable::Run(){
// Check if we even have a container to work with.
if (Container != NULL)
{
//Container->ThreadSafeUpdateNeeds();
Container->IsUpdated = true;
}
return 0;
}
[FONT=&]
[FONT=&]where Container is a struct. It itself is not a USTRUCT(). Some of it’s properties are pointers to USTRUCTs and UObjects, but none of them are being modified or touched - all I’m doing here is updating a bool value - and yet this still causes a crash.
[FONT=&]Any ideas?