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.
Summary: | *Gdb-lite* Debugger Console window | ||
---|---|---|---|
Product: | cnd | Reporter: | Nikolay Molchanov <nikmolchanov> |
Component: | Debugger | Assignee: | _ gordonp <gordonp> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Nikolay Molchanov
2006-07-18 01:21:19 UTC
Problem 3 is fixed (great thanks to Vladimir Voskresensky for the suggested fix!). The suggested fix is to use SwingUtilities.invokeLater() to call closeDebuggerConsole() from AWT thread. The fix is integrated in "cnd-nb50-dev" branch. Tag: cnd-nb50-dev User: NikMolchanov Date: 2006/07/18 08:56:12 Modified: cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/GdbProxyCL.java Log: IZ 80446 *Gdb-lite* Debugger Console window Fixed Problem 3: - "close console" must be done in AWT thread File Changes: Directory: /cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/ ============================================================== File [changed]: GdbProxyCL.java Url: http://cnd.netbeans.org/source/browse/cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/GdbProxyCL.java?r1=1.1.2.33&r2=1.1.2.34 Delta lines: +8 -4 ------------------- --- GdbProxyCL.java 18 Jul 2006 01:34:39 -0000 1.1.2.33 +++ GdbProxyCL.java 18 Jul 2006 15:56:10 -0000 1.1.2.34 @@ -19,11 +19,11 @@ package org.netbeans.modules.cnd.debugger.gdb; -import java.io.IOException; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Vector; +import javax.swing.SwingUtilities; import org.openide.DialogDisplayer; import org.openide.NotifyDescriptor; @@ -171,8 +171,12 @@ String dir = "/tmp"; // NOI18N gdbProxy.gdbProxyML.executeExternalCommand(cmd, dir, 0); } - // close console - // gdbProxy.gdbProxyVL.closeDebuggerConsole(); // IZ 80446 Problem 3. + // close console (must be done in AWT thread) + SwingUtilities.invokeLater(new Runnable() { + public void run() { + gdbProxy.gdbProxyVL.closeDebuggerConsole(); + } + }); } else { debuggerStatus = STARTING; } ---------------------------------------------------------------- Priority is downgraded to P4 because the most critical problems are fixed. For unknown reason this issue got status "New". Changed it back to "Started". Fixed. Nik fixed problem 3 a long time ago. I removed the context menu, which fixed problem 1. I also fixed the text field width in problem 2. |