ImageWrapperModule error

Hi, I am following the tutorial for asnyc image load and it works fine in editor, but in the packaged game it crashes. I get this error: “Exception thrown at 0x00007FF8DD20DE0E (ntdll.dll) in Project-Win64-DebugGame.exe: 0xC0000005: Access violation writing location 0x0000000000000024.” Can you help please? Thankyou

// This includes the precompiled header. Change this to whatever is relevant for your project.
#include "Project.h"

#include "ImageLoader.h"
#include "Runtime/ImageWrapper/Public/IImageWrapper.h"//#include "IImageWrapper.h"
#include "Runtime/ImageWrapper/Public/IImageWrapperModule.h"
#include "Runtime/RenderCore/Public/RenderUtils.h"
#include "Engine/Texture2D.h"

// Change the UE_LOG log category name below to whichever log category you want to use.

#define UIL_LOG(Verbosity, Format, ...) UE_LOG(LogTemp, Verbosity, Format, __VA_ARGS__)

// Module loading is not allowed outside of the main thread, so we load the ImageWrapper module ahead of time. 
//static IImageWrapperModule& ImageWrapperModule = FModuleManager::LoadModuleChecked<IImageWrapperModule>(TEXT("ImageWrapper"));
IImageWrapperModule& ImageWrapperModule = FModuleManager::LoadModuleChecked<IImageWrapperModule>(FName("ImageWrapper")); //ERROR

I ran into the same issue.

Making this call:
IImageWrapperModule& ImageWrapperModule = FModuleManager::LoadModuleChecked(FName(“ImageWrapper”));

as a static variable failed. I moved the call to the function call where it was used and the crash went away. Apparently doing the LoadModuleChecked() call that early doesn’t work in subsequent versions of Unreal.