Download

Question about FPlatformProcess::PushDllDirectory & FPlatformProcess::PopDllDirectory.

just wondering if calling FPlatformProcess::PushDllDirectory, FPlatformProcess::GetDllHandle & FPlatformProcess::PopDllDirectory once on StartupModule is enough to keep the dll (sorry if I’m saying this next part wrong)
open in memory, so I can use those functions freely throughout my plugin .cpp until I call FPlatformProcess::FreeDllHandle on ShutdownModule.

or should I use Push, GetDllHandle & Pop everytime I want to call a function from this third party dll.

sorry if I’m not explaining this correctly.

here is my answerhub question.

https://answers.unrealengine.com/questions/473337/should-i-call-fplatformprocesspushdlldirectory-fpl.html