Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Error 126 when loading my AE plugin with cairo library

Contributor ,
Nov 04, 2020 Nov 04, 2020

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?

 

TOPICS
SDK
888
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 04, 2020 Nov 04, 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)

Translate
Community Expert ,
Nov 04, 2020 Nov 04, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 04, 2020 Nov 04, 2020

Thanks for the reply!

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 04, 2020 Nov 04, 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)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 05, 2020 Nov 05, 2020

Dear Shachar,

 the issue is resolved! Thank you for your help!

I put cairo.dll into /Adobe after/Support Files folder of Adobe After directory.

And it worked like a charm.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 05, 2020 Nov 05, 2020

yay!

but perhaps it's est to detect your plug-ins path and load the cairo library from there using a defined path instead of just the library name...

cairo is a popular library and you don't want to deploy your plug-in's components onto a common directory where it might be ovewritten by some other plug-in using a different version.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 15, 2020 Nov 15, 2020
LATEST

Dear Shachar,

 

thank you for your advice!

I'll follow it!

Yaroslav.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines