Hi all,
I’ve been working on a plugin for a long time, and recently decided to integrate some of the plugin’s third party functionality via their provided .dll and .lib.
I believe I have implemented it correctly as the project with the plugin opens correctly. However, upon clicking a slate UI button I created (which calls a function) the project crashes.
It is crashing on a call to a function within the external library, specifically in a windows lib delayhlp.cpp - specifically made for delay loading dlls.
 using System.IO;
 using UnrealBuildTool;
 
 public class ThirdParty_SDK : ModuleRules
         {
            public ThirdParty_SDK(TargetInfo Target)
             {
                 Type = ModuleType.External;
         
                 // Add the import library.
                 PublicLibraryPaths.Add(Path.Combine(ModuleDirectory, "lib"));
                 PublicAdditionalLibraries.Add("ThirdParty_SDK.lib");
         
                 // Delay-load the DLL.
                 PublicDelayLoadDLLs.Add("ThirdParty_SDK.dll");
             }
         
         }
This module is then included in the main plugin’s build.cs in PublicDependencyModuleNames.
As I said above, I believe that these have been included correctly as previously I was getting a message upon load telling me that the main module had not been created properly.
The specific line that crashes in delayhlp.ccp is line 323
// If we get to here, we blindly assume that the handler of the exception
                 // has magically fixed everything up and left the function pointer in 
                 // dli.pfnCur.
                 //
                 return dli.pfnCur;
Any help would be greatly appreciated, I have a client waiting upon this so the sooner the better.
Thank you in advance!