Espigah / as3-arduino-connector

Automatically exported from code.google.com/p/as3-arduino-connector
0 stars 0 forks source link

setupPort. #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Debugging the app with the code arduino.connect("COM3",9600);

What is the expected output? What do you see instead?
It is the port where my arduino is connected but I get error on air:
The extension context does not have a method with the name setupPort.

What version of the product are you using? On what operating system?
0.99

Please provide any additional information below.

Original issue reported on code.google.com by rrproduc...@gmail.com on 5 Dec 2011 at 8:04

GoogleCodeExporter commented 9 years ago
Which Operating System are you using this on?

Original comment by Nicholas...@gmail.com on 5 Dec 2011 at 8:56

GoogleCodeExporter commented 9 years ago
win 7 64 bits. I was already using a proxy to connect with air and all worked 
perfectly.

Original comment by rrproduc...@gmail.com on 5 Dec 2011 at 9:00

GoogleCodeExporter commented 9 years ago
(and a socket in the script)

Original comment by rrproduc...@gmail.com on 5 Dec 2011 at 9:15

GoogleCodeExporter commented 9 years ago
Which compiler / IDE are you using with this project.  We ran across this error 
with the Mac version of Flash Builder 4.6, but I haven't heard it from any 
Windows users yet.  Do you get the same error if you do a release build for 
your project?

Original comment by Nicholas...@gmail.com on 6 Dec 2011 at 4:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm using flex 4.6 (official realease), now I realeased as a native application 
and I get the same error when running... it says can't run because 
pthreadGC2.dll is missing (but I tell the comiler to pack the native extension)

Original comment by rrproduc...@gmail.com on 6 Dec 2011 at 1:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
THIS IS ALL THE ERROR FROM THE PLAYER:
ArgumentError: Error #3500: The extension context does not have a method with 
the name setupPort.
    at flash.external::ExtensionContext/_call()
    at flash.external::ExtensionContext/call()
    at com.quetwo.Arduino::ArduinoConnector/connect()[C:\Users\Nicholas Kwiatkowski\Adobe Flash Builder 4.6\SerialANELib\src\com\quetwo\Arduino\ArduinoConnector.as:70]
    at teste/initApp()[C:\Users\My\Adobe Flash Builder 4.6\teste\src\teste.mxml:17]
    at teste/___teste_WindowedApplication1_creationComplete()[C:\Users\My\Adobe Flash Builder 4.6\teste\src\teste.mxml:4]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
    at mx.core::UIComponent/set initialized()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:842]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

Original comment by rrproduc...@gmail.com on 6 Dec 2011 at 7:26

GoogleCodeExporter commented 9 years ago
If it is saying pthreadGC2.dll is missing, then something is amiss.  That is 
the POSIX DLL that should ship with Windows (I had a few people report that it 
was missing in their install), but I also include it in the ANE package.  
Because it is packaged with it, it should install in the proper place when you 
do the install.  

Can you try unzipping the .ANE, going to the META-INF\ANE\Windows-x86\  
directory, and copying the pthreadGC2.dll copy into your C:\Windows\System32 
directory?

Your error message in comment 8 still makes me think that it can call the DLL, 
but the DLL isn't getting past the initialization function...  

Original comment by Nicholas...@gmail.com on 7 Dec 2011 at 1:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Success!!! Now I copied the 2 dll to system32 and to the system64 :P, Now I'm 
trying to figure out what is really needed

Original comment by rrproduc...@gmail.com on 7 Dec 2011 at 2:07

GoogleCodeExporter commented 9 years ago
SOLUTION: copy the pthreadGC2.dll to Windows\SysWOW64

Original comment by rrproduc...@gmail.com on 7 Dec 2011 at 2:13

GoogleCodeExporter commented 9 years ago
In my case, becase of the 64bits... but it's odd because the air is 32...

Original comment by rrproduc...@gmail.com on 7 Dec 2011 at 2:14

GoogleCodeExporter commented 9 years ago
Good to know.  I will add it to the docs once I finish writing them.

Original comment by Nicholas...@gmail.com on 7 Dec 2011 at 7:52

GoogleCodeExporter commented 9 years ago

Original comment by Nicholas...@gmail.com on 9 Dec 2011 at 3:47

GoogleCodeExporter commented 9 years ago
Issue closed with release of 1.0.0

Original comment by Nicholas...@gmail.com on 18 Dec 2011 at 4:23

GoogleCodeExporter commented 9 years ago
Hi guys, I get this problem still and I'm using the latest version from 
'source' (assuming version 1.0.0 has been and gone).  But your solution works 
for me so not worried. 

Original comment by andytwo...@gmail.com on 23 Mar 2012 at 2:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I also ran into this problem using the latest from source. Solution worked for 
me as well. just wanted to let you know.

SOLUTION: copy the pthreadGC2.dll to Windows\SysWOW64

Original comment by april.jo...@gmail.com on 23 May 2012 at 11:20

GoogleCodeExporter commented 9 years ago
Just for the record, I am using Windows 7, Flash Professional CS6, Air 3.8.
I was getting the setupPort error as well.

SOLUTION:

Copy pthreadGC2.dll and libgcc_s_dw2-1.dll to Windows\SysWOW64. In my case, I 
had to copy both dlls.

Original comment by ebi...@gmail.com on 15 Nov 2013 at 3:23

GoogleCodeExporter commented 9 years ago
I opened the ane and copied both of the .dll's to both System32 and SysWOW64 
and still get the error. Using Flash CS6 on Windows 8. Anyone know of a way to 
fix this?

Original comment by dmenneno...@gmail.com on 1 Aug 2014 at 12:27

GoogleCodeExporter commented 9 years ago
where do you find libgcc_s_dw2-1.dll?  It doesn't seem to be packaged in the 
ANE.

Original comment by d...@druby.net on 30 Sep 2014 at 6:40