Skip to main content
Inspiring
November 4, 2020
Answered

Error 126 when loading my AE plugin with cairo library

  • November 4, 2020
  • 1 reply
  • 803 views

Dear AE fellows,

I'm creating AE pugin with the help of cairo library.

I encounter the following strange problem.

When I load my plugin from visual studio, AE starts and load my plugin OK.

But when I start AE on its own and apply plugin layer,

 

AE fails to load it. It gives:

 

Error plugin: myplugin.aex could not be loaded(126)

 

(48::46)

 

How can one fix it?

 

This topic has been closed for replies.
Correct answer shachar carmi

first make sure it's indeed the issue! build a simple plug-in that loads properly both from the debugger and directly. then have it prompt the path to it's home folder.

(just a suggestion before you go chasing a speculation)

1 reply

Community Expert
November 4, 2020

is the non-vs test done on the same machine?
if it's a different machine then it's porbably a dependency issue where the plug-in relies on some dlls that are not present on the other machine.

if it's the same machine, then perahps there's a difference in what directory is considered the "home" directory of the process, which in turn makes some dependent upon dlls not available for your plug-in to load when ran not though the debugger.

Inspiring
November 4, 2020

Thanks for the reply!

It is the same machine. I'll try to figure out how to fix dlls folders.

shachar carmiCommunity ExpertCorrect answer
Community Expert
November 5, 2020

first make sure it's indeed the issue! build a simple plug-in that loads properly both from the debugger and directly. then have it prompt the path to it's home folder.

(just a suggestion before you go chasing a speculation)