3 ms·
A better workaround would be to call __HrLoadAllImportsForDll[1]. Delay loading lets you defer grabbing function pointers from a dll (normally until the first c
by wheybags 3y ago
A better workaround would be to call __HrLoadAllImportsForDll[1].
Delay loading lets you defer grabbing function pointers from a dll (normally until the first call of that function). But if you call __HrLoadAllImportsForDll from the addon's init code, you can attempt to load them all in one go. That way it doesn't happen during a call with a float argument, so it shouldn't cause problems.
1: https://learn.microsoft.com/en-us/cpp/build/reference/linker-support-for-delay-loaded-dlls?view=msvc-170#load-all-imports-for-a-delay-loaded-dll https://learn.microsoft.com/en-us/cpp/build/reference/linker...
- Const-me 3y agoThe bug is specific to Win64 builds made with GCC compiler. I’m pretty sure VC++ doesn’t have that bug.