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

assertion in AwtGraphics::ChangeColor triggered

XMLWordPrintable

    • x86
    • windows_nt

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: