displayChange listeners list not MT-safe (win32 only)

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: client-libs
    • None
    • 2d
    • beta2
    • x86
    • windows_nt

      The list of displayChange listeners in WDisplayChanger is currently set
      up as an ArrayList. This works fine for most situations; we add items,
      we remove items, we iterate through the list sending displayChanged
      events. But in a multi-threaded situation, this could break down
      because we may try to do several things to the list at once.

      For example, we might, during a displayChange, try to add items to
      the list at the same time as we are iterating through the list to send
      the message. This causes a "comodification" error on the ArrayList
      object and throws an exception, causing rendering and execution problems.

            Assignee:
            Chet Haase (Inactive)
            Reporter:
            Chet Haase (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: