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 60243 - Profiler agent prevents non-explicit termination of non-GUI applications
Summary: Profiler agent prevents non-explicit termination of non-GUI applications
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-19 16:35 UTC by iformanek
Modified: 2007-02-12 21:57 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 iformanek 2005-06-19 16:35:28 UTC
When a simple app with just the main thread finishes the execution, the 
profiler agent should print message "Press any key to terminate" and terminate 
the VM if the user does so.
Comment 1 iformanek 2005-09-12 18:27:02 UTC
Update: The VM should terminate when all non-deamon threads finish their 
execution. This is specifically visible on simple "hello world" apps, since 
there is typically no explicite System.exit call and/or exit handling that AWT 
manages.

The bug is caused by the fact that the profiler agent creates several non-
deamon threads, that keep running even after all threads of the user app finish.

Fixed in M9 by making all agent threads deamons, and leaving the exit handling 
up to the shutdown handler.
Comment 2 ehucka 2006-10-09 12:08:36 UTC
Verification of old issues.
Comment 3 Alexander Kouznetsov 2007-02-12 21:57:37 UTC
Closing old issues.