Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load the .DLL! #32

Open
GoogleCodeExporter opened this issue Mar 22, 2015 · 3 comments
Open

Unable to load the .DLL! #32

GoogleCodeExporter opened this issue Mar 22, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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

Original issue reported on code.google.com by indyaner...@gmail.com on 24 Jun 2014 at 4:10

@GoogleCodeExporter
Copy link
Author

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

Original comment by indyaner...@gmail.com on 24 Jun 2014 at 4:11

@GoogleCodeExporter
Copy link
Author

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-ex
tensions-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 

Original comment by indyaner...@gmail.com on 24 Jun 2014 at 5:23

@obuw
Copy link

obuw commented Feb 10, 2017

I have just spent the last two hours trying to get this to work, with no luck. Downloaded the DLL files from two separate locations, first from this thread, then by extracting them from the ANE. Placed them in the src folder, the bin folder, System32 folder, SysWOW64 folder, restarted my computer twice. Still the same error as the original poster.

Really frustrated.

Oh, I'm using Windows 7 and FlashDevelop by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants