Click here to Skip to main content
12,065,316 members (42,199 online)
Click here to Skip to main content

Tagged as

Stats

18.1K views
786 downloads
18 bookmarked
Posted

Mnemonic: Assisting Your (virtual) Memory

, 9 Feb 2012 CPOL
A tool for visualizing the virtual memory used by Windows processes
namespace Mnemonic
{
    partial class MnemonicForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.statusStrip = new System.Windows.Forms.StatusStrip();
            this.labelAddress = new System.Windows.Forms.ToolStripStatusLabel();
            this.labelRegionName = new System.Windows.Forms.ToolStripStatusLabel();
            this.comboProcesses = new System.Windows.Forms.ComboBox();
            this.txtPID = new System.Windows.Forms.TextBox();
            this.txtWindow = new System.Windows.Forms.TextBox();
            this.refreshTimer = new System.Windows.Forms.Timer(this.components);
            this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
            this.processWorker = new System.ComponentModel.BackgroundWorker();
            this.txtAddressLimit = new System.Windows.Forms.TextBox();
            this.txtAddress0 = new System.Windows.Forms.TextBox();
            this.pboxGraph = new System.Windows.Forms.PictureBox();
            this.statusStripTotals = new System.Windows.Forms.StatusStrip();
            this.labelTotalCommitted = new System.Windows.Forms.ToolStripStatusLabel();
            this.labelTotalReserved = new System.Windows.Forms.ToolStripStatusLabel();
            this.labelTotalFree = new System.Windows.Forms.ToolStripStatusLabel();
            this.labelLargestFree = new System.Windows.Forms.ToolStripStatusLabel();
            this.toolTip = new System.Windows.Forms.ToolTip(this.components);
            this.txtBitness = new System.Windows.Forms.TextBox();
            this.statusStrip.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pboxGraph)).BeginInit();
            this.statusStripTotals.SuspendLayout();
            this.SuspendLayout();
            // 
            // statusStrip
            // 
            this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.labelAddress,
            this.labelRegionName});
            this.statusStrip.Location = new System.Drawing.Point(0, 146);
            this.statusStrip.Name = "statusStrip";
            this.statusStrip.Size = new System.Drawing.Size(847, 24);
            this.statusStrip.SizingGrip = false;
            this.statusStrip.TabIndex = 1;
            this.statusStrip.Visible = false;
            // 
            // labelAddress
            // 
            this.labelAddress.AutoSize = false;
            this.labelAddress.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom)));
            this.labelAddress.BorderStyle = System.Windows.Forms.Border3DStyle.Sunken;
            this.labelAddress.Name = "labelAddress";
            this.labelAddress.Size = new System.Drawing.Size(250, 19);
            this.labelAddress.Text = "0xCCCCCCCC:0xCCCCCCCC [0xCCCCCCCC]";
            this.labelAddress.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // labelRegionName
            // 
            this.labelRegionName.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom)));
            this.labelRegionName.BorderStyle = System.Windows.Forms.Border3DStyle.Sunken;
            this.labelRegionName.Name = "labelRegionName";
            this.labelRegionName.Size = new System.Drawing.Size(582, 19);
            this.labelRegionName.Spring = true;
            // 
            // comboProcesses
            // 
            this.comboProcesses.DisplayMember = "ProcessName";
            this.comboProcesses.FormattingEnabled = true;
            this.comboProcesses.Location = new System.Drawing.Point(5, 12);
            this.comboProcesses.Name = "comboProcesses";
            this.comboProcesses.Size = new System.Drawing.Size(164, 21);
            this.comboProcesses.Sorted = true;
            this.comboProcesses.TabIndex = 2;
            this.comboProcesses.Text = "<Select process>";
            this.comboProcesses.ValueMember = "ProcessName";
            this.comboProcesses.DropDown += new System.EventHandler(this.comboProcesses_DropDown);
            this.comboProcesses.SelectedIndexChanged += new System.EventHandler(this.comboProcesses_SelectedIndexChanged);
            this.comboProcesses.TextUpdate += new System.EventHandler(this.comboProcesses_TextUpdate);
            // 
            // txtPID
            // 
            this.txtPID.Location = new System.Drawing.Point(175, 12);
            this.txtPID.Name = "txtPID";
            this.txtPID.ReadOnly = true;
            this.txtPID.Size = new System.Drawing.Size(57, 20);
            this.txtPID.TabIndex = 3;
            // 
            // txtWindow
            // 
            this.txtWindow.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.txtWindow.Location = new System.Drawing.Point(276, 12);
            this.txtWindow.Name = "txtWindow";
            this.txtWindow.ReadOnly = true;
            this.txtWindow.Size = new System.Drawing.Size(485, 20);
            this.txtWindow.TabIndex = 4;
            // 
            // refreshTimer
            // 
            this.refreshTimer.Enabled = true;
            this.refreshTimer.Interval = 1000;
            this.refreshTimer.Tick += new System.EventHandler(this.refreshTimer_Tick);
            // 
            // saveFileDialog
            // 
            this.saveFileDialog.DefaultExt = "png";
            this.saveFileDialog.Filter = "png file|*.png";
            // 
            // processWorker
            // 
            this.processWorker.WorkerReportsProgress = true;
            this.processWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.processWorker_DoWork);
            this.processWorker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.processWorker_ProgressChanged);
            // 
            // txtAddressLimit
            // 
            this.txtAddressLimit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtAddressLimit.Location = new System.Drawing.Point(695, 39);
            this.txtAddressLimit.Name = "txtAddressLimit";
            this.txtAddressLimit.ReadOnly = true;
            this.txtAddressLimit.Size = new System.Drawing.Size(66, 20);
            this.txtAddressLimit.TabIndex = 5;
            this.txtAddressLimit.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // txtAddress0
            // 
            this.txtAddress0.Location = new System.Drawing.Point(5, 39);
            this.txtAddress0.Name = "txtAddress0";
            this.txtAddress0.ReadOnly = true;
            this.txtAddress0.Size = new System.Drawing.Size(66, 20);
            this.txtAddress0.TabIndex = 5;
            this.txtAddress0.Text = "0 MB";
            // 
            // pboxGraph
            // 
            this.pboxGraph.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.pboxGraph.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.pboxGraph.Location = new System.Drawing.Point(5, 65);
            this.pboxGraph.MaximumSize = new System.Drawing.Size(2000, 66);
            this.pboxGraph.MinimumSize = new System.Drawing.Size(4, 66);
            this.pboxGraph.Name = "pboxGraph";
            this.pboxGraph.Size = new System.Drawing.Size(756, 66);
            this.pboxGraph.TabIndex = 6;
            this.pboxGraph.TabStop = false;
            this.pboxGraph.Click += new System.EventHandler(this.pboxGraph_Click);
            this.pboxGraph.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlGraph_Paint);
            this.pboxGraph.MouseEnter += new System.EventHandler(this.pnlGraph_MouseEnter);
            this.pboxGraph.MouseLeave += new System.EventHandler(this.pnlGraph_MouseLeave);
            this.pboxGraph.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pnlGraph_MouseMove);
            // 
            // statusStripTotals
            // 
            this.statusStripTotals.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.labelTotalCommitted,
            this.labelTotalReserved,
            this.labelTotalFree,
            this.labelLargestFree});
            this.statusStripTotals.Location = new System.Drawing.Point(0, 135);
            this.statusStripTotals.Name = "statusStripTotals";
            this.statusStripTotals.Size = new System.Drawing.Size(773, 22);
            this.statusStripTotals.SizingGrip = false;
            this.statusStripTotals.TabIndex = 7;
            this.statusStripTotals.Text = "statusStrip1";
            // 
            // labelTotalCommitted
            // 
            this.labelTotalCommitted.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom)));
            this.labelTotalCommitted.BorderStyle = System.Windows.Forms.Border3DStyle.Sunken;
            this.labelTotalCommitted.Name = "labelTotalCommitted";
            this.labelTotalCommitted.Size = new System.Drawing.Size(189, 17);
            this.labelTotalCommitted.Spring = true;
            // 
            // labelTotalReserved
            // 
            this.labelTotalReserved.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom)));
            this.labelTotalReserved.BorderStyle = System.Windows.Forms.Border3DStyle.Sunken;
            this.labelTotalReserved.Name = "labelTotalReserved";
            this.labelTotalReserved.Size = new System.Drawing.Size(189, 17);
            this.labelTotalReserved.Spring = true;
            // 
            // labelTotalFree
            // 
            this.labelTotalFree.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom)));
            this.labelTotalFree.BorderStyle = System.Windows.Forms.Border3DStyle.Sunken;
            this.labelTotalFree.Name = "labelTotalFree";
            this.labelTotalFree.Size = new System.Drawing.Size(189, 17);
            this.labelTotalFree.Spring = true;
            // 
            // labelLargestFree
            // 
            this.labelLargestFree.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) 
            | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom)));
            this.labelLargestFree.BorderStyle = System.Windows.Forms.Border3DStyle.Sunken;
            this.labelLargestFree.Name = "labelLargestFree";
            this.labelLargestFree.Size = new System.Drawing.Size(189, 17);
            this.labelLargestFree.Spring = true;
            // 
            // toolTip
            // 
            this.toolTip.IsBalloon = true;
            // 
            // txtBitness
            // 
            this.txtBitness.Location = new System.Drawing.Point(238, 12);
            this.txtBitness.Name = "txtBitness";
            this.txtBitness.ReadOnly = true;
            this.txtBitness.Size = new System.Drawing.Size(32, 20);
            this.txtBitness.TabIndex = 3;
            // 
            // MnemonicForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(773, 157);
            this.Controls.Add(this.statusStripTotals);
            this.Controls.Add(this.pboxGraph);
            this.Controls.Add(this.txtAddress0);
            this.Controls.Add(this.txtAddressLimit);
            this.Controls.Add(this.txtWindow);
            this.Controls.Add(this.txtBitness);
            this.Controls.Add(this.txtPID);
            this.Controls.Add(this.comboProcesses);
            this.Controls.Add(this.statusStrip);
            this.MaximizeBox = false;
            this.MaximumSize = new System.Drawing.Size(2000, 193);
            this.MinimumSize = new System.Drawing.Size(400, 193);
            this.Name = "MnemonicForm";
            this.Text = "Mnemonic - explore process Virtual Memory";
            this.TopMost = true;
            this.statusStrip.ResumeLayout(false);
            this.statusStrip.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pboxGraph)).EndInit();
            this.statusStripTotals.ResumeLayout(false);
            this.statusStripTotals.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.StatusStrip statusStrip;
        private System.Windows.Forms.ToolStripStatusLabel labelAddress;
        private System.Windows.Forms.ToolStripStatusLabel labelRegionName;
        private System.Windows.Forms.ComboBox comboProcesses;
        private System.Windows.Forms.TextBox txtPID;
        private System.Windows.Forms.TextBox txtWindow;
        private System.Windows.Forms.Timer refreshTimer;
        private System.Windows.Forms.SaveFileDialog saveFileDialog;
        private System.ComponentModel.BackgroundWorker processWorker;
        private System.Windows.Forms.TextBox txtAddressLimit;
        private System.Windows.Forms.TextBox txtAddress0;
        private System.Windows.Forms.PictureBox pboxGraph;
        private System.Windows.Forms.StatusStrip statusStripTotals;
        private System.Windows.Forms.ToolStripStatusLabel labelTotalCommitted;
        private System.Windows.Forms.ToolStripStatusLabel labelTotalReserved;
        private System.Windows.Forms.ToolStripStatusLabel labelTotalFree;
        private System.Windows.Forms.ToolStripStatusLabel labelLargestFree;
        private System.Windows.Forms.ToolTip toolTip;
        private System.Windows.Forms.TextBox txtBitness;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Phil Atkin
Founder Pixel Analytics Ltd.
United Kingdom United Kingdom
My expertise is concentrated on image processing and analysis; I've been doing it most of my working life. Now I offer consultancy through my own company, as well as developing software products.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160204.4 | Last Updated 9 Feb 2012
Article Copyright 2011 by Phil Atkin
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid