c++ - Including library in AIR Native Extension causes the error, "The extension context does not have a method with the name..." for all methods -


i working on air native extension (ane) windows desktop. point of extension able call out third-party c library, consists of 2 .h files defining method signatures/typedefs, , .lib file.

before including third party library in project, first confirmed set correctly building ane simple "sayhello" function in dll creates , returns string.

having verified can call sayhello air application , response, proceeded add function initializes third-party library. things went sideways. dll compiles fine, , i'm able package ane without error, when try call ane function air, following error:

"the extension context not have method name..."

in air, call createextensioncontext() succeeds , returns extensioncontext object, i'm not able call native functions. what's more, visual studio's debugger no longer loads symbols dll - dll not appear in modules window , cannot set breakpoints in native code.

if comment out line call third-party library's initialize function, works fine again - can call functions , hit breakpoints in visual studio.

so basically, appears if compile library dll, air fail load it. cause this?

using processmonitor, found the third-party library has dependency on external dll, not finding. @ time extensioncontext created, runtime apparently attempts resolve dependencies of ane. since not find dll, ane's initializer function failing. air still creates extensioncontext object in situation, since never initialized, not know names , locations of functions.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -