# Exception when trying to bind a UFUNCTION with AddDynamic to a Delegate

**URL:** <https://forums.unrealengine.com/t/exception-when-trying-to-bind-a-ufunction-with-adddynamic-to-a-delegate/1306192>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [September 21, 2023, 9:04am UTC](https://forums.unrealengine.com/t/exception-when-trying-to-bind-a-ufunction-with-adddynamic-to-a-delegate/1306192 "2023-09-21T09:04:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [September 22, 2023, 6:48pm UTC](https://forums.unrealengine.com/t/exception-when-trying-to-bind-a-ufunction-with-adddynamic-to-a-delegate/1306192/4 "2023-09-22T18:48:09Z")

</div>

> [@seeyouanteeius](#):
>
> Then I renamed my function which I’m trying to bind to another name and it suddenly works as expected: if this function is not bound to a delegate - nothing happens. And if I explicitly bind it with _AddDynamic_ then it successfully binds and the socket works.

I have a feeling that that happens using an ‘old’ blueprint asset deriving from the AUavSimPawn? Blueprints can corrupt like that. If your c++ is fine, it shouldn’t happen if your method name wasn’t stored somewhere in a way that conflicts with your current C++.

You could test making a new blueprint asset deriving from the class using the old function name, if that works you are most likely looking at a corrupt asset.

---

_[View the full topic](https://forums.unrealengine.com/t/exception-when-trying-to-bind-a-ufunction-with-adddynamic-to-a-delegate/1306192)._
