Export to GitHub

as3-arduino-connector - issue #5

setupPort.


Posted on Dec 5, 2011 by Happy Camel

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.

Comment #1

Posted on Dec 5, 2011 by Happy Bear

Which Operating System are you using this on?

Comment #2

Posted on Dec 5, 2011 by Happy Camel

win 7 64 bits. I was already using a proxy to connect with air and all worked perfectly.

Comment #3

Posted on Dec 5, 2011 by Happy Camel

(and a socket in the script)

Comment #4

Posted on Dec 6, 2011 by Happy Bear

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?

Comment #5

Posted on Dec 6, 2011 by Happy Wombat

Comment deleted

Comment #6

Posted on Dec 6, 2011 by Happy Camel

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)

Comment #7

Posted on Dec 6, 2011 by Happy Camel

Comment deleted

Comment #8

Posted on Dec 6, 2011 by Happy Camel

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]

Comment #9

Posted on Dec 7, 2011 by Happy Bear

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...

Comment #10

Posted on Dec 7, 2011 by Happy Camel

Comment deleted

Comment #11

Posted on Dec 7, 2011 by Happy Camel

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

Comment #12

Posted on Dec 7, 2011 by Happy Camel

SOLUTION: copy the pthreadGC2.dll to Windows\SysWOW64

Comment #13

Posted on Dec 7, 2011 by Happy Camel

In my case, becase of the 64bits... but it's odd because the air is 32...

Comment #14

Posted on Dec 7, 2011 by Happy Bear

Good to know. I will add it to the docs once I finish writing them.

Comment #15

Posted on Dec 9, 2011 by Happy Bear

(No comment was entered for this change.)

Comment #16

Posted on Dec 18, 2011 by Happy Bear

Issue closed with release of 1.0.0

Comment #17

Posted on Mar 23, 2012 by Happy Horse

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.

Comment #18

Posted on May 23, 2012 by Happy Bird

Comment deleted

Comment #19

Posted on May 23, 2012 by Happy Bird

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

Comment #20

Posted on Nov 15, 2013 by Quick Giraffe

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.

Comment #21

Posted on Aug 1, 2014 by Quick Ox

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?

Comment #22

Posted on Sep 30, 2014 by Happy Lion

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

Status: Verified

Labels:
Type-Defect Priority-Medium Milestone-Release1.0