Each level changes every 30 seconds.
If I call ActivateItem() and set the timer with SetTimer() when there are less than 2 seconds left in this timeout, I will get an error
Moving on to the next level
Error: Read access error (?) in Particle->DestroyComponent() in SetTimer()
"0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFF."
Why is this happening?
Why is if(IsValid(Particle)) in the lambda function true?
regardless of whether the particle is a nullptr or not.
raw pointer is GC’d, so I expect it to be False
i saw
IsValid() checks, if an object is non-null and not marked ready for being garbage collected during the next garbage collection cycle.
I looked up raw pointers and GCs and TWeakObjectPtrs and stuff like that, but I have no idea why that code doesn’t work.
Please let me know what I’m missing, even if it’s something small.
