Multi cast delegate becoming unbound after time in editor.
I've got a UObject method bound to a delegate that becomes unbound after a period of time. This screams GC issues, but the object that holds the methods is a UPROPERTY and there are other methods belonging to said object bound to delegates that are still there which seems to remove that as a contender for cause. I also only have two code paths that will unbind the delegate in my project both of which would clear the other methods that have been bound to the other delegate but to be sure I've put a break point on both of these paths to ensure that they are not being hit.
I also found that the problem only exists when I run the game with the editor, and I am unable to reproduce the issue when I run either Debug Game or Development builds. This is causing me concern as I have no idea how the editor would be unbinding this single delegate consistently and would like to understand if only to ensure that running the editor does not just make the problem less frequent.
asked Jan 05 '18 at 11:40 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here