Author: cwittich
Date: Sun May 31 11:43:51 2009
New Revision: 41214
URL:
http://svn.reactos.org/svn/reactos?rev=41214&view=rev
Log:
-only allow one instance to run
Modified:
trunk/tools/reactosdbg/RosDBG/Dockable Objects/RawTraffic.Designer.cs
trunk/tools/reactosdbg/RosDBG/Program.cs
trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs
Modified: trunk/tools/reactosdbg/RosDBG/Dockable Objects/RawTraffic.Designer.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/Dockable%2…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/Dockable Objects/RawTraffic.Designer.cs [iso-8859-1]
(original)
+++ trunk/tools/reactosdbg/RosDBG/Dockable Objects/RawTraffic.Designer.cs [iso-8859-1] Sun
May 31 11:43:51 2009
@@ -42,6 +42,7 @@
// RawTrafficText
//
this.RawTrafficText.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.RawTrafficText.Font = new System.Drawing.Font("Courier New",
8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.RawTrafficText.Location = new System.Drawing.Point(0, 0);
this.RawTrafficText.MaxLength = 10000000;
this.RawTrafficText.Multiline = true;
@@ -90,19 +91,19 @@
this.copyToolStripMenuItem.Enabled = false;
this.copyToolStripMenuItem.Image =
global::RosDBG.Properties.Resources.copyToolStripMenuItem_Image;
this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
- this.copyToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.copyToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
this.copyToolStripMenuItem.Text = "&Copy";
this.copyToolStripMenuItem.Click += new
System.EventHandler(this.copyToolStripMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
- this.toolStripMenuItem1.Size = new System.Drawing.Size(149, 6);
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(117, 6);
//
// selectAllToolStripMenuItem
//
this.selectAllToolStripMenuItem.Name =
"selectAllToolStripMenuItem";
- this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
this.selectAllToolStripMenuItem.Text = "&Select all";
this.selectAllToolStripMenuItem.Click += new
System.EventHandler(this.selectAllToolStripMenuItem_Click);
//
Modified: trunk/tools/reactosdbg/RosDBG/Program.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/Program.cs…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/Program.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/RosDBG/Program.cs [iso-8859-1] Sun May 31 11:43:51 2009
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Threading;
using System.Windows.Forms;
namespace RosDBG
@@ -13,10 +14,18 @@
[STAThread]
static void Main()
{
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- MainWindow mw = new MainWindow();
- Application.Run(mw);
+ Mutex m = new Mutex(false, "ReactOS Remote Debugger");
+ if (m.WaitOne(10, false))
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ MainWindow mw = new MainWindow();
+ Application.Run(mw);
+ }
+ else
+ {
+ /* TODO */
+ }
}
}
}
Modified: trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/Properties…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs [iso-8859-1] (original)
+++ trunk/tools/reactosdbg/RosDBG/Properties/AssemblyInfo.cs [iso-8859-1] Sun May 31
11:43:51 2009
@@ -39,5 +39,5 @@
// will be increased as well. MSI installers must not be generated with the same Build
Number
// otherwise they won't upgrade the old installation!
-[assembly: AssemblyVersion("1.0.0.2")]
-[assembly: AssemblyFileVersion("1.0.0.2")]
+[assembly: AssemblyVersion("1.0.2.4")]
+[assembly: AssemblyFileVersion("1.0.2.4")]