Possible to call / load an external DLL in GlobalSetup()?
Hi Again ![]()
So, I'm needing to use a DLL provided to me by a third party. I need to call a function from it in GlobalSetup(). I've linked the DLL (x64) correctly as Visual Studio is building the .aex just fine. However, when I go to debug and apply the effect to a solid, for exampe, AE tells me:
After Effects error: plugin "testplug.aex" could not be loaded (126).
(48 :: 46)
Then, I click 'OK', and when I apply the effect again it gives me the following error:
After Effects error: invalid filter
(25 :: 3)
From my experience this usually means that After Effects cannot find some kind of DLL, but I might be wrong. When this error comes up, I do see the following in Visual Studio's debug output:
First-chance exception at 0x00007FF8BB0D871C in AfterFX.exe: Microsoft C++ exception: long at memory location 0x000000000083AE78.
First-chance exception at 0x00007FF8BB0D871C in AfterFX.exe: Microsoft C++ exception: long at memory location 0x000000000083AFAC.
First-chance exception at 0x00007FF8BB0D871C in AfterFX.exe: Microsoft C++ exception: long at memory location 0x000000000083B610.
I doubt that means anything, but just thought I would share that info in case it does.
I've pinned down the problem to the first line of code that calls a function from the third-party DLL. When I comment out that line, everything is okay, but when I uncomment it, I get the errors above. So, my question is if there is anything I can further to do debug the DLL issue. The DLL was just shipped with an SDK, so I don't have access to the source.
If there is any insight you all can offer, I would be most appreciative.
Thanks and best,
Arie
