Delegate BindUObject

I try delegate function to component

in class1 I have

.h

DECLARE_DELEGATE(UseFunction)

UseFunction UseDelegate;

.cpp

UseDelegate.Execute();

class2

.cpp

class1->UseDelegate.BindUObject(this, &class2::Use);

first time it work ok
but when i exit game in editor and start again editor crash after call

Look in to logs in Saved/Logs in your project directory, if it was detected error it should show you crash log and reason behide it as much as UE4 could. My guess is your class2::Use is declered without UFUNCTION() and it not visible in reflection system, if i’m not mistaken UObject bind requires that and it impossible to detect this error in compile time so it is runtime error which crashes engine.

I fix it I move bind from constructor to begin play