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

assertion in AwtGraphics::ChangeColor triggered

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      very rarely, ::SetTextColor will assert because m_hDC is NULL.
      even though this:

         if (m_hDC != NULL) {
            VERIFY(::SetTextColor(m_hDC, color) != CLR_INVALID);
         }

      checks m_hDC against NULL, the value obviously can change between that check
      and the SetTextColor call! There are three solutions to this problem:

      1. ignore it (probably asking for more problems)
      2. remove the VERIFY check since we're occasionally passing NULL DC's to
         windows anyway...
      3. synchronize the call to setColor in WGraphics.java
         (and all other calls like it)
      4. re-evaluate or change synchronization of shared DCs.

        Attachments

          Activity

            People

            • Assignee:
              mmartaksunw Michael Martak (Inactive)
              Reporter:
              jlockesunw Jonathan Locke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: