Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-22052

Keyboard events takes place out of order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 3.5 (Release)
    • None
    • Events
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows
      Language Found: English

    Description

      The stack of functions:

      keyboardEvent(event:Event)
      {
      Trace("keyboard event");
      writePacketToLAyer1();
      }
      writePacketToLAyer1()
      {
      Trace("layerONE");
      writePacketToLAyer2();
      }
      .
      .
      .
      writePacketToLAyer3()
      {
      Trace("layerTHREE");
      writePacketToLAyer4();
      }
      writePacketToLayer4()
      {
      Trace("layerFOUR")
      sendPacketThroughHTTPRequest();
      }

      sendPacketThroughHTTPRequest()
      {
      Trace("sending HTTP Request "+ nextToSend++);
      }

      Whenever a keyboard event occurs function stack gets executed as mentioned above.

      Steps to reproduce:*
      I am making a small project which will reproduce this scenario. Will update the thread asap.
      The problem is because of the shared resource (nextToSend), which gets corrupted due to overlapping of
      the function stack. I looked everywhere on the forums and adobe site, they all say that keyboard events take place in
      a single thread. According to which this should not happen. I am at a loss currently.

      Actual Results:
      Keyboard event
      layerONE
      layerTWO
      keyboard event
      layerONE
      layerTWO
      layerTHREE
      layerFOUR
      sending HTTP Request nextToSend
      layerTHREE
      layerFOUR
      sending HTTP Request nextToSend

      Expected Results:
      Keyboard event
      layerONE
      layerTWO
      layerTHREE
      layerFOUR
      sending HTTP Request nextToSend
      keyboard event
      layerONE
      layerTWO
      layerTHREE
      layerFOUR
      sending HTTP Request nextToSend

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: