* HeapShot.Gui/MainWindow.cs: Explicitly Destroy SelectProcessDialog.
* HeapShot.Gui/SelectProcessDialog.cs (Dispose): Remove. svn path=/trunk/heap-shot/; revision=78616
This commit is contained in:
Родитель
13ccde431f
Коммит
23abb0b7cd
|
@ -1,3 +1,8 @@
|
|||
2007-06-05 Ankit Jain <jankit@novell.com>
|
||||
|
||||
* HeapShot.Gui/MainWindow.cs: Explicitly Destroy SelectProcessDialog.
|
||||
* HeapShot.Gui/SelectProcessDialog.cs (Dispose): Remove.
|
||||
|
||||
2007-04-18 Alp Toker <alp@atoker.com>
|
||||
|
||||
* HeapShot.Reader/ReferenceNode.cs: Build fix. Old gmcs allowed
|
||||
|
|
|
@ -50,11 +50,14 @@ public partial class MainWindow: Gtk.Window
|
|||
protected virtual void OnMemorySnapshotActivated(object sender, System.EventArgs e)
|
||||
{
|
||||
if (processId == -1) {
|
||||
using (SelectProcessDialog dlg = new SelectProcessDialog ()) {
|
||||
SelectProcessDialog dlg = new SelectProcessDialog ();
|
||||
try {
|
||||
if (dlg.Run () == (int) Gtk.ResponseType.Ok) {
|
||||
processId = dlg.ProcessId;
|
||||
} else
|
||||
return;
|
||||
} finally {
|
||||
dlg.Destroy ();
|
||||
}
|
||||
}
|
||||
ObjectMapReader map = ObjectMapReader.CreateProcessSnapshot (processId);
|
||||
|
|
|
@ -27,12 +27,6 @@ namespace HeapShot.Gui
|
|||
get { return pid; }
|
||||
}
|
||||
|
||||
public override void Dispose ()
|
||||
{
|
||||
base.Dispose ();
|
||||
Destroy ();
|
||||
}
|
||||
|
||||
protected virtual void OnResponse(object o, Gtk.ResponseArgs args)
|
||||
{
|
||||
Gtk.TreeModel foo;
|
||||
|
|
Загрузка…
Ссылка в новой задаче