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 92248 - Detach without terminating of attached application doesn't work
Summary: Detach without terminating of attached application doesn't work
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-10 17:33 UTC by ehucka
Modified: 2007-02-16 11:08 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 ehucka 2007-01-10 17:33:09 UTC
After detach of direct attached local application there is shown a dialog asking
if the profiled application should be terminated upon detach.

It is not usable for direct attach because after I answered No the application
was still running (as was expected) but the profiler was working too - live
results were updated etc.
Comment 1 ehucka 2007-01-11 12:35:30 UTC
I find out the dynamic attach has the same problem - after detach without
terminating of attached application profiler remains measuring. After the
application is closed by user the 'detached' profiler asks about take snapshot
of finished application.

There was thrown an exception after the detach. Maybe it is related to this problem:

java.lang.AssertionError: WindowsAPI is required to be called from AWT thread
only, see http://core.netbeans.org/proposals/threading/
	at
org.netbeans.core.windows.WindowManagerImpl.assertEventDispatchThread(WindowManagerImpl.java:1367)
	at
org.netbeans.core.windows.WindowManagerImpl.findTopComponentGroup(WindowManagerImpl.java:200)
	at
org.netbeans.modules.profiler.LiveResultsWindow.hideDrillDown(LiveResultsWindow.java:316)
	at
org.netbeans.modules.profiler.LiveResultsWindow.resetResultsDisplay(LiveResultsWindow.java:562)
	at
org.netbeans.modules.profiler.LiveResultsWindow.reset(LiveResultsWindow.java:505)
	at
org.netbeans.modules.profiler.NetBeansProfiler.detachFromApp(NetBeansProfiler.java:880)
	at org.netbeans.modules.profiler.actions.StopAction$2.run(StopAction.java:130)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Comment 2 Jiri Sedlacek 2007-01-11 12:59:15 UTC
java.lang.AssertionError fixed, please verify if that fixed the issue.
Comment 3 Tomas Hurka 2007-02-14 16:28:25 UTC
Closing as fixed.
Comment 4 ehucka 2007-02-16 11:08:24 UTC
verified