Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 61637 invoked from network); 10 Oct 2007 16:47:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2007 16:47:20 -0000 Received: (qmail 92277 invoked by uid 500); 10 Oct 2007 16:04:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 92261 invoked by uid 500); 10 Oct 2007 16:04:29 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 92252 invoked by uid 99); 10 Oct 2007 16:04:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 09:04:29 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 16:04:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 898A1714233 for ; Wed, 10 Oct 2007 09:03:50 -0700 (PDT) Message-ID: <5251182.1192032230560.JavaMail.jira@brutus> Date: Wed, 10 Oct 2007 09:03:50 -0700 (PDT) From: "Dmitriy Matveev (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-4925) [classlib][awt] GDI Objects are not released after calling getGraphics() function of Component class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib][awt] GDI Objects are not released after calling getGraphics() function of Component class ---------------------------------------------------------------------------------------------------- Key: HARMONY-4925 URL: https://issues.apache.org/jira/browse/HARMONY-4925 Project: Harmony Issue Type: Bug Components: Classlib Environment: Windows Reporter: Dmitriy Matveev Reproducer: import java.awt.Frame; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class Test { public static void main(String[] args) { final Frame f = new Frame() { public void paint(Graphics g) { Graphics2D g2d = (Graphics2D) g; g2d.drawString("asdf",50,50); } }; f.setBounds(0, 0, 800, 600); f.setVisible(true); f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent ev) { System.exit(0); } }); f.addMouseListener(new MouseListener(){ public void mouseReleased(MouseEvent e){ f.getGraphics(); } public void mouseClicked(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEvent e) { } }); } } You may use Windows Task Manager to view the number of used GDI objects. To do this, you need: 1. Click the Processes tab in Task Manager 2.Click View, then Select Columns. 5. Check GDI Objects and click OK. 6. Click the java-process of the test, and scroll to the GDI Objects column. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.