IDE Crashing


I

Ivan Cronyn

I am using Visual Studio.Net 2003 and have created a form that crashes
the IDE EVERY TIME ;-). All I have to do is go anywhere into a
procedure, type

this.

At the "dot", intellisense appears (as usual). When I use Tab, or
click on an item in the list, I get an error about the IDE closing,
save/send a bug report, etc.

Any ideas?

----------------OFFENDING CODE----------------

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using BrevanHoward.Pds2.Browser;

namespace BrevanHoward.Pds2.GUI
{
/// <summary>
/// Summary description for frmDuplicateData.
/// </summary>
public class frmDuplicateData : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox txtIdentifier;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox txtCategory;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtQualifier;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtClass;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox txtNewIdentifier;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
private PdsFilter _filter=null;

public frmDuplicateData(PdsFilter filter)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
ApplyFilter(filter);
_filter=filter;

//
// TODO: Add any constructor code after InitializeComponent call
//
}

private void ApplyFilter(PdsFilter filter)
{
txtClass.Text=filter.ClassName;
txtQualifier.Text=filter.Qualifier;
txtCategory.Text=filter.Category;
txtIdentifier.Text=filter.Identifier;
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(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.txtIdentifier = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.txtCategory = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.txtQualifier = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.txtClass = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.btnCancel = new System.Windows.Forms.Button();
this.btnOK = new System.Windows.Forms.Button();
this.txtNewIdentifier = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// txtIdentifier
//
this.txtIdentifier.Location = new System.Drawing.Point(88, 88);
this.txtIdentifier.Name = "txtIdentifier";
this.txtIdentifier.Size = new System.Drawing.Size(152, 20);
this.txtIdentifier.TabIndex = 3;
this.txtIdentifier.Text = "";
//
// label4
//
this.label4.Location = new System.Drawing.Point(8, 88);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(72, 32);
this.label4.TabIndex = 18;
this.label4.Text = "Source Identifier:";
//
// txtCategory
//
this.txtCategory.Location = new System.Drawing.Point(88, 64);
this.txtCategory.Name = "txtCategory";
this.txtCategory.Size = new System.Drawing.Size(152, 20);
this.txtCategory.TabIndex = 2;
this.txtCategory.Text = "";
//
// label3
//
this.label3.Location = new System.Drawing.Point(8, 64);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(72, 23);
this.label3.TabIndex = 17;
this.label3.Text = "Category:";
//
// txtQualifier
//
this.txtQualifier.Location = new System.Drawing.Point(88, 40);
this.txtQualifier.Name = "txtQualifier";
this.txtQualifier.Size = new System.Drawing.Size(152, 20);
this.txtQualifier.TabIndex = 1;
this.txtQualifier.Text = "";
//
// label2
//
this.label2.Location = new System.Drawing.Point(8, 40);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(72, 23);
this.label2.TabIndex = 15;
this.label2.Text = "Qualifier:";
//
// txtClass
//
this.txtClass.Location = new System.Drawing.Point(88, 16);
this.txtClass.Name = "txtClass";
this.txtClass.Size = new System.Drawing.Size(152, 20);
this.txtClass.TabIndex = 0;
this.txtClass.Text = "";
//
// label1
//
this.label1.Location = new System.Drawing.Point(8, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(72, 23);
this.label1.TabIndex = 11;
this.label1.Text = "ClassName:";
//
// btnCancel
//
this.btnCancel.DialogResult =
System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(216, 184);
this.btnCancel.Name = "btnCancel";
this.btnCancel.TabIndex = 6;
this.btnCancel.Text = "Cancel";
//
// btnOK
//
this.btnOK.Location = new System.Drawing.Point(136, 184);
this.btnOK.Name = "btnOK";
this.btnOK.TabIndex = 5;
this.btnOK.Text = "OK";
//
// txtNewIdentifier
//
this.txtNewIdentifier.Location = new System.Drawing.Point(88, 136);
this.txtNewIdentifier.Name = "txtNewIdentifier";
this.txtNewIdentifier.Size = new System.Drawing.Size(152, 20);
this.txtNewIdentifier.TabIndex = 4;
this.txtNewIdentifier.Text = "";
//
// label5
//
this.label5.Location = new System.Drawing.Point(8, 136);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(72, 32);
this.label5.TabIndex = 20;
this.label5.Text = "Destination Identifier:";
//
// frmDuplicateData
//
this.AcceptButton = this.btnOK;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(304, 222);
this.Controls.Add(this.txtNewIdentifier);
this.Controls.Add(this.label5);
this.Controls.Add(this.txtIdentifier);
this.Controls.Add(this.label4);
this.Controls.Add(this.txtCategory);
this.Controls.Add(this.label3);
this.Controls.Add(this.txtQualifier);
this.Controls.Add(this.label2);
this.Controls.Add(this.txtClass);
this.Controls.Add(this.label1);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "frmDuplicateData";
this.StartPosition =
System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Copy Data";
this.Load += new System.EventHandler(this.frmDuplicateData_Load);
this.ResumeLayout(false);

}
#endregion

private void frmDuplicateData_Load(object sender, System.EventArgs
e)
{
if (_filter.ClassName.Length!=0)
this.ActiveControl = txtNewIdentifier;
}
}
}
 
Ad

Advertisements

D

Dmitriy Lapshin [C# / .NET MVP]

Hi Ivan,

I'd suggest you reposted this repro in the microsoft.public.vsnet.ide
newsgroup. There are MS people who are directly involved in VS .NET
development, so your repro will be pretty useful for them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top