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

HDCs for AwtComponent not being released

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • client-libs
    • 2d
    • beta
    • 6
    • b56
    • x86
    • windows_xp

      Mustang b51+, Windows XP Prof
      Open Font2DTest, click on any letter to zoom it, click on the Close button in the frame - see assertion:
      *********************
      AWT Assertion Failure
      *********************
      ::GetObjectType(tmpDCList->hDC) == OBJ_DC
      File '../../../src/windows/native/sun/windows/awt_Component.cpp', at line 7118
      GetLastError() is 6 : The handle is invalid.
      Do you want to break into the debugger?
      *********************

      Possibly a regression from 6219278
      Another way to see the problem is to run an application that creates a huge amount of threads and renders once in each thread; this will cause an HDC to be allocated for each thread and never released (the HDC objects should be released upon thread exit).

            chaasesunw Chet Haase (Inactive)
            dmikhalksunw Denis Mikhalkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: