Air Native Extensions:已发布 Air App w/Windows Native Extension 在开发 PC 上运行良好,但在其他计算机上运行不正常

Air Native Extensions: Released Air App w/Windows Native Extension works fine on develpment PC but not on other computers

我正在开发一个 AIR 应用程序,它使用我为同一项目开发的 windows 本机扩展。该应用程序调用名为 pingFunction 的 ANE 方法,并向其传递一个包含 IP 地址的字符串,信不信由你,pingFunction 将在其中执行 ping 测试。

该应用程序及其 ANE 在 Flash Builder 上运行良好,甚至在发布后,它们在开发 PC 上仍能正常工作。问题是我在另外两台计算机上试过,应用程序抛出以下错误:

ArgumentError: Error #3500: The extension context does not have a method with the name pingFunction. 
at flash.external::ExtensionContext/_call() 
at flash.external::ExtensionContext/call() 
at com.mycompanyname.myappname::MyAppName/sendPing()[...  

一开始我认为我必须处理这样一个事实,即我使用的是我使用 Visual Studio 上的调试配置而不是发布配置编译的 DLL,因为我读到有时调试 - DLL 的版本可以使用外部 DLL。因此,我更改了它并将整个库重建为发布版本。对我来说可悲的是,我仍然遇到同样的结果。

此外,我尝试将 AIR 应用程序和 ANE 的 swf-version 更改为我正在使用的 AIR SDK 版本 (14.0),但再次出现相同的错误。

开发计算机是 运行 Windows 8.1 和其他应用程序无法运行的计算机,Windows 7 和 Windows 7 Service Pack 1。

关于为什么会发生这种情况有什么想法吗?任何可能引导我走向正确轨道的问题或评论将不胜感激。

错误#3500 即将到来,因为您没有在这些机器上安装所需的 运行time,而这是执行任何 c++ 代码所必需的。
在您的开发机器上,您安装了 visual studio,因此您也安装了 msvcr。

问题的解决方案是:

Install msvcr i.e. Microsoft Visual c++ redistribution - 2012 from here.

你想在任何地方都需要 msvcr 运行 任何 VS 编译的 c++ 代码。