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

readBytesAsByteArray Error #3503: The extension was left in an invalid state. #25

Open
GoogleCodeExporter opened this issue Mar 30, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
2.
3.

[SWF] com.quetwo.Arduino.ArduinoConnector - 7,123 bytes after decompression
[SWF] arduinoTest.swf - 3,535,367 bytes after decompression
[ArduinoConnector] Initalizing ANE...
[ArduinoConnector] Opening COM port handle number 7 success =  true
Error: Error #3503: The extension was left in an invalid state.
    at flash.external::ExtensionContext/_call()
    at flash.external::ExtensionContext/call()
    at com.quetwo.Arduino::ArduinoConnector/readBytesAsByteArray()[E:\Apache\dev\SerialANE\src\com\quetwo\Arduino\ArduinoConnector.as:190]
    at arduinoTest/onSocketData()[D:\ULAS\FreeLance\arduinoTest\src\arduinoTest.mxml:32]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.quetwo.Arduino::ArduinoConnector/gotEvent()[E:\Apache\dev\SerialANE\src\com\quetwo\Arduino\ArduinoConnector.as:350]


What version of the product are you using? On what operating system?
Windows 8 x64 Flash Builder 4.6

Source
.
.

protected function 
windowedapplication1_creationCompleteHandler(event:FlexEvent):void
            {
                arduino = new ArduinoConnector();
                arduino.addEventListener("socketData",onSocketData);
                arduino.connect("COM7",9600);


                txtOutput.appendText("Connecting")

            }

            protected function onSocketData(event:ArduinoConnectorEvent):void
            {
                var ba:ByteArray;
                arduino.removeEventListener("socketData",onSocketData);
                ba = arduino.readBytesAsByteArray();
            }




Original issue reported on code.google.com by [email protected] on 4 Jul 2013 at 1:51

@GoogleCodeExporter
Copy link
Author

Same here this happends when using readBytesAsByteArray()
readBytesAsString() works fine

Win 7 x64

Original comment by [email protected] on 1 Oct 2013 at 9:39

  • Added labels: ****
  • Removed labels: ****

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

1 participant