Export to GitHub

as3-arduino-connector - issue #32

Unable to load the .DLL!


Posted on Jun 24, 2014 by Quick Rhino

What steps will reproduce the problem? 1. add ANE to lib path 2. setup a new ArduinoConnector() 3. compile and get error

What is the expected output? What do you see instead? Loading the DLL correctly

What version of the product are you using? On what operating system? Windows7 x64 Air 3.9 FlashDevelop 4.5.2.5

Please provide any additional information below.

I've copied the libSerialANE.dll and pthreadGC2.dll from the ANE to both Paths: C:\Windows\System32 C:\Windows\SysWOW64

I then used the pthreadGC2.dll from the seperate ZIP-Package of the Repository. Same Error.

I already gebooted the system serveral times, used a localy installed FlashDevelop and a portable FlashDevelop.

Is there something I'm missing? Is FlashDevelop not supported? Do I have to install those DLLs somewhere or is a plain copy paste enough?

Console-Log:

Done(0) [Starting debug session with FDB] [ArduinoConnector] Initalizing ANE... [ArduinoConnector] Unable to load the .DLL! Make sure libSerialANE.DLL and PthreadGC2.dll are available. [ArduinoConnector] ANE Not loaded properly. Future calls will fail. [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.

Hope for help. Indyaner

Comment #1

Posted on Jun 24, 2014 by Quick Rhino

Oh I forgot: I'm using the latest as3-ArduinoConnector 1.5.0

Comment #2

Posted on Jun 24, 2014 by Quick Rhino

For anyone who has the same trouble, here is what I did just now and it seems to work:

I've read this thread: http://www.flashdevelop.org/community/viewtopic.php?f=9&t=9049

The last comment by Framais (Mar 04, 2014) helped alot: "I found this tutorial very useful: http://fermmm.wordpress.com/2014/01/04/working-tutorial-to-install-air-native-extensions-in-flash-develop-4-windows-desktop-project/ "

I followed the instrcutions there. Is seems like FlashDevelop has trouble with the ANE (like FlashBuilder has too, at least on mac as it seems). I did every step there, and then tried it again and it failed as the "libgcc_s_dw2-1.dll" was missing. Strange. But anyway, as I couldnt find this in the minGW-Package (it is really hard to browse) I tried my luck and took it from one of those Free DLL Websites (I trusted in this case de.dll-files.com/libgcc_s_dw2-1.dll.html). I then restarted my PC again (make sure you do this as well with problems like these) and started FlashDevelop, pressed F5 and everything worked... My Arduino was sending "Hello" and I received it.

I might come back here, if I encounter any other trouble.

I hope this will help someone in the future.

Indyaner

Status: New

Labels:
Type-Defect Priority-Medium