JDK-4908809 : Disposing an embeddedFrame with a panel crashes
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt,windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2003-08-19
  • Updated: 2003-09-05
  • Resolved: 2003-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Duplicate :  
Duplicate :  
Description

Name: pa48320			Date: 08/19/2003

Create a C++ program on windows that uses sun.awt.windows.WToolKit.embeddedInit() and has an EmbeddedFrame with a child of java.awt.Panel. Disposing the frame causes messages to be posted instead of sent (PostMessage instead of SendMessage) which means that the destructino of the window can happen before the messages to dispose the java objects can happen first. A zip file with a preproducing MS Devstudio project will be attached.
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b19
14-06-2004

EVALUATION Commit to fix in Tiger. ###@###.### 2003-08-19 Name: ssR10077 Date: 08/22/2003 ###@###.### 2003-08-22 The problem is we receive WM_DESTROY due to disposal of EmbeddedFrame parent window. Our handler in AwtComponent does `delete this;` so after WM_AWT_DISPOSE is handled second delete crashes. ======================================================================
11-06-2004

WORK AROUND Name: pa48320 Date: 08/19/2003 None known. ======================================================================
11-06-2004

SUGGESTED FIX Name: ssR10077 Date: 09/04/2003 The new method AwtObject::scheduleDelete() is added. This methods is called instead of 'delete' and checks for multiple delete. ======================================================================
11-06-2004