Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8267819

CoInitialize/CoUninitialize should be called on same thread

    XMLWordPrintable

    Details

    • Subcomponent:
    • OS:
      windows

      Backports

        Description

        JDK-8264737 introduced new code for audio device removal/arrival notifications which calls CoInitialize/CoUninitialize on separate threads. CoInitialize/CoUninitialize should be called on same thread. Calling CoUninitialize on separate threads will result in unitializing COM objects on this thread and if other code runs on such thread it will not work correctly if it is using COM objects.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                almatvee Alexander Matveev
                Reporter:
                almatvee Alexander Matveev
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: