Delegate Crash

ACBYTES
Thu, 15 Apr 2021 08:31:34 +0000
C++

Hi.
I have to compile the C++ code for 3-4 times before playing the game to avoid the game from crashing because of an inner problem in the Multicast Delegate and Delegate classes.

**Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff

UE4Editor_Engine
UE4Editor_Regret_4754!TBaseFunctorDelegateInstance<void __cdecl(bool),FDefaultDelegateUserPolicy,<lambda_6669d0385390045a3932be9d39625d5c> >::ExecuteIfSafe() [M:\Game Related\UE4\Engine\UE_4.26\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:838]
UE4Editor_Regret_4754!TMulticastDelegate<void __cdecl(bool),FDefaultDelegateUserPolicy>::Broadcast() [M:\Game Related\UE4\Engine\UE_4.26\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:955]
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll**

I know my code doesn’t have any problems and I think that Hot-Reloaded objects replace the main object and the multicast delegates get to point to a null delegate. Any opinions on this?

3 posts - 3 participants