This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 65607 - Profiler doesn't stop when the application terminates
Summary: Profiler doesn't stop when the application terminates
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-02 03:48 UTC by ngbrito
Modified: 2006-02-22 16:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ngbrito 2005-10-02 03:48:19 UTC
If you run the following interactive console application in the IDE
profiler you will see that when the application terminates the profiler remains
runing and counting as if the application was still runing. You have to
explicitly stop it by pressing the stop (red) button.

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
    
    public static void main(String[] args) {
        try {
            System.out.println("What is your name?");
            BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
            String name = r.readLine(); // should wait here for user input
            System.out.println("Hello, " + name);
        } catch (IOException e) {
            System.err.println("Failed to read from console.");
        }
    }
    
}
Comment 1 ngbrito 2005-10-02 03:52:45 UTC
I'm using:
NetBeans IDE 4.1
Mobility Pack 4.1
Profiler Milestone 8 (v3)
J2SE 5.0 Update 5
Comment 2 ngbrito 2005-10-03 16:12:38 UTC
In NetBeans IDE 5.0 with Profiler Milestone 9 it works fine, i.e. when the
application terminates I get a dialog saying that the application has finished
and saying me to press ok to terminate the Java VM.
Comment 3 iformanek 2005-10-03 16:37:01 UTC
Right, this bug was fixed in Milestone 9 release.
Comment 4 ngbrito 2006-02-22 16:41:33 UTC
It's ok in NetBeans Profiler 5.0. Closing it.