WebViewANE icon indicating copy to clipboard operation
WebViewANE copied to clipboard

AIR application built with 64-bit Harman SDK gets .Net FileNotFound exception unable to find 64-bit FreSharpBridge.InitController

Open rnmixon opened this issue 4 months ago • 4 comments

Answer the below. DO NOT DELETE!!

Have you read the Wiki carefully? yes

What version of the product are you using? 2.30 WebViewANE 2.5.0 FreSharp

On what operating system? win 10

**If Windows is the AIR app 32bit or 64bit? 64bit

Which IDE are you using? VS Code

Which version of AIR are you using? 51.2.1

We are using WebViewANE.ane downloaded on June 24, 2025 and FreSharp.ane downloaded on July 3, 2025.

The Harman SDK locates the ANE modules inside the "" with the following: <path-element>src/libs/WebViewANE.ane</path-element> <path-element>src/libs/FreSharp.ane</path-element>

When we run the application we get the following errors: Exception Info: System.IO.FileNotFoundException at <Module>.FreSharpBridge.InitController() at <Module>.TRWV_contextInitializer(Void*, Byte*, Void*, UInt32*, FRENamedFunction_**)

When I look under the install folder ... "C:\Program Files\Maretron N2KExtractor 4.0.8\META-INF\AIR\extensions\com.tuarua.FreSharp\META-INF\ANE" ... It looks like only the x86 files are there, not the x64 (or x86-64) dlls. $ ls -l "C:/Program Files/Maretron N2KExtractor 4.0.8/META-INF/AIR/extensions/com.tuarua.FreSharp\META-INF/ANE" total 8 drwxr-xr-x 1 rnmixon 197121 0 Aug 25 16:51 Windows-x86/ -rw-r--r-- 1 rnmixon 197121 1051 Aug 18 16:37 extension.xml

$ ls -l "C:/Program Files/Maretron N2KExtractor 4.0.8/META-INF/AIR/extensions/com.tuarua.FreSharp\META-INF/ANE/Windows-x86" total 212 -rwxr-xr-x 1 rnmixon 197121 33280 Aug 18 16:37 FreSharp.dll* -rwxr-xr-x 1 rnmixon 197121 33280 Aug 18 16:37 FreSharpANE.dll* -rwxr-xr-x 1 rnmixon 197121 139264 Aug 18 16:37 FreSharpCore.dll* -rw-r--r-- 1 rnmixon 197121 1083 Aug 18 16:37 library.swf

What am I missing?

rnmixon avatar Aug 26 '25 19:08 rnmixon

BTW, if this is more of a usage question I apologize. I could not seem to find a link for a discussion group/forum. We did use the example installer model (setup.iss) as a base and this worked fine a few years back when we were using the old-style Adobe AIR Runtime. We are using the new Harman runtime in order to support more recent Linux environments and devices.

rnmixon avatar Aug 26 '25 20:08 rnmixon

I might be looking at a different ANE version perhaps, but there are a few odd things I can see:

  • when I unzip the WebViewANE.ane file using macOS, I can see 17 DLLs in the Windows-x86-64 folder, and the same in the Windows-x86 folder
  • but some of those files are actually 32-bit (in Windows-x86-64) so although WebViewANE.dll is 64-bit, CefSharp.dll is a 32-bit .net DLL, as is CefSharp.Core.dll, but CefSharp.Core.Runtime.dll is reported as a 64-bit DLL. I'm not sure that should work?
  • the above directory listing implies to me that ADT has put in the wrong extension folder ..

I've just realised I was only looking at WebViewANE, so have just looked at FreSharp.ane as well -> which does have correct DLLs in there. I'm not sure how the extensions are meant to work but maybe it's possible for the 64-bit version of the WebViewANE extension library to be loaded - does this then try to manually load the FreSharp DLLs hence a "file not found" exception? because trying to create an ExtensionContent in ActionScript should fail if we don't have the right folder packaged up..

@rnmixon are you able to confirm what's in your other folder under extensions there, i.e. within com.tuarua.WebViewANE\META-INF\ANE do you have a Windows-x86-64 folder?

thanks

ajwfrost avatar Aug 27 '25 06:08 ajwfrost

There is no Windows-x86-64 folder in that location. $ ls META-INF/AIR/extensions/ com.tuarua.FreSharp/ com.tuarua.WebViewANE/ Thank you

rnmixon avatar Aug 27 '25 12:08 rnmixon

OK - user error here. I was actually building 32-bit application. When I build with 64-bit (-arch x64) the application goes a bit further but dies with a "File not found error". It happens when I call "public var mWebView : WebView = WebView.shared();" Our code previously just called "new WebViewANE();" but it seems that is obsolete and we need to calle "WebView.shared();" now.

Is there a list of forum I can go to for help on using WebView?

Thank you much - Richard

rnmixon avatar Sep 16 '25 01:09 rnmixon