AWS DynmoDB third party library plugin results in EXCEPTION_ACCESS_VIOLATION

Hey,
I’m trying to set up a plugin to use the AWS DynamoDB SDK. The .dll’s seem to be loaded correctly, as I can use some of the functionality of the SDK. Others result in a EXCEPTION_ACCESS_VIOLATION, like this:

[2021.05.29-19.49.12:715][803]LogTemp: Warning: Attemp save inv.
[2021.05.29-19.49.16:168][803]LogWindows: Error: === Critical error: ===
[2021.05.29-19.49.16:168][803]LogWindows: Error: 
[2021.05.29-19.49.16:168][803]LogWindows: Error: Fatal error!
[2021.05.29-19.49.16:168][803]LogWindows: Error: 
[2021.05.29-19.49.16:168][803]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x00000200
[2021.05.29-19.49.16:168][803]LogWindows: Error: 
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff8eff5d3cc aws-cpp-sdk-core.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff8eff35ad5 aws-cpp-sdk-core.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff8f40aa644 UE4Editor-DynamoAPI-Win64-DebugGame.dll!UDynamo::SaveInventory() [D:\ProjectEmilia\ProjectEmilia\Plugins\DynamoAPI\Source\DynamoAPI\Private\Dynamo.cpp:18]
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff8f3edd0a1 UE4Editor-Emilia-Win64-DebugGame.dll!AEmiliaGameMode::Logout() [D:\ProjectEmilia\ProjectEmilia\Source\Emilia\Private\Actors\GameModes\EmiliaGameMode.cpp:244]
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff907a5bc51 UE4Editor-Engine.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff907dbdad2 UE4Editor-Engine.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff90753f15a UE4Editor-Engine.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff908257910 UE4Editor-Engine.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff907f91740 UE4Editor-Engine.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff8fdb8c9c7 UE4Editor-OnlineSubsystemUtils.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff908032e91 UE4Editor-Engine.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff90866eb11 UE4Editor-Engine.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff9086d967c UE4Editor-Engine.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff9141aba1f UE4Editor-UnrealEd.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff913c6bce5 UE4Editor-UnrealEd.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff9145437e6 UE4Editor-UnrealEd.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff71f417800 UE4Editor-Win64-DebugGame.exe!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff71f42ba7c UE4Editor-Win64-DebugGame.exe!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff71f42bb5a UE4Editor-Win64-DebugGame.exe!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff71f43e32d UE4Editor-Win64-DebugGame.exe!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff71f44146a UE4Editor-Win64-DebugGame.exe!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff985847034 KERNEL32.DLL!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: [Callstack] 0x00007ff987c42651 ntdll.dll!UnknownFunction []
[2021.05.29-19.49.16:168][803]LogWindows: Error: 
[2021.05.29-19.49.16:390][803]LogExit: Executing StaticShutdownAfterError
[2021.05.29-19.49.16:393][803]LogWindows: FPlatformMisc::RequestExit(1)

From what I’ve read in similar questions, it probably has something to do with how UE handles garbage collection. I haven’t found any concrete advice on how to fix issues like this.
This is what I’m trying to execute currently:

	const Aws::Client::ClientConfiguration ClientConfiguration;
	const Aws::DynamoDB::DynamoDBClient DynamoClient(ClientConfiguration);

	Aws::DynamoDB::Model::PutItemRequest PutItemRequest;
	PutItemRequest.SetTableName("PlayerCharacters");

	Aws::DynamoDB::Model::AttributeValue IdValue;
	IdValue.SetS("Test1921");

	Aws::DynamoDB::Model::AttributeValue InventoryValue;
	InventoryValue.SetS("This is a super full inventory");

	PutItemRequest.AddItem("CharacterName", IdValue);
	PutItemRequest.AddItem("Inventory", InventoryValue);
	
	const Aws::DynamoDB::Model::PutItemOutcome Result = DynamoClient.PutItem(PutItemRequest);

Any help is very much appreciated.

Hello,
Have you find a solution ? it seems that you’re exception is related to mine :
UE 4/5 Crashes, Hello World in Third Party Library integration, EXCEPTION_ACCESS_VIOLATION