JDK-6553150 : Plugin leaks parentless awt frames
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u12
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86
  • Submitted: 2007-05-02
  • Updated: 2010-05-06
  • Resolved: 2007-06-06
Related Reports
Duplicate :  
Description
This happens in 5.0 update 12.

When refresh applet web page very quickly, we can see parentless SunAwtFrame being left anywhere on the desktop. Some frames are blank white, some are hidden. They are not parented to any browser windows.

It looks that one fix got into 5.0u12 causes this issue.

Comments
SUGGESTED FIX remove the following code in AxControl.cpp Cleanup() solves the problem: //detach java frame if (m_hWnd) { HWND frame = ::GetWindow(m_hWnd, GW_CHILD); if (frame) { RECT rect; ::GetWindowRect(frame, &rect); ::ShowWindow(frame, SW_HIDE); ::SetParent(frame, NULL); ::MoveWindow(frame, rect.left, rect.top, rect.right, rect.bottom, FALSE); }
22-05-2007