Lambda Causes Crash on Level Change

Was it actually crashing inside the lambda invocation code, or was it crashing because you’ve captured a raw this pointer inside the lambda?

When you use the UObject function binding, the this you pass will be captured as a weak pointer so that it won’t call when the object is destroyed (or pending kill), the lambda won’t do that for you.

2 Likes