473,396 Members | 2,151 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IDE Crashing

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.CenterParen t;
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;
}
}
}
Nov 15 '05 #1
1 1039
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.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Ivan Cronyn" <iv**@citsystems.net> wrote in message
news:38**************************@posting.google.c om...
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.CenterParen t;
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;
}
}
}


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Yannick Majoros | last post by:
Hello, PHP is crashing (segfault) due to some bug. See http://bugs.php.net/bug.php?id=32929 for details, but here is the code in which it occurs: while...
0
by: Henry Hank | last post by:
Environment: I'm setting up a database server on a Dell Poweredge 2650, dual 1.8GHZ pentium with 1GB of memory and RAID5 drives. I've installed RedHat 9, and updated the kernel to 2.4.20-19.9smp....
5
by: Eddie | last post by:
I have a MySQL-server running Innodb. We have installed ~ 2GB of memory in the server. In spite of this MySQL keeps crashing due to out-of-memory errors. The server is a dual xeon i686 running...
14
by: Java and Swing | last post by:
static PyObject *wrap_doStuff(PyObject *self, PyObject *args) { // this will store the result in a Python object PyObject *finalResult; // get arguments from Python char *result = 0; char *in=...
7
by: Jeffrey Barrett | last post by:
/* machine.txt: ------------------ Cola 0.75 20 Ruby Red Blast 1.00 10 Lemon Fizz 0.75 8 Grape Soda
0
by: Grant | last post by:
My C# web application connects to an Access database using the OleDbConnection and OleDbDataReader. I have 3 other computers that connect to this server but very frequently I get an 'Unspecified...
8
by: code break | last post by:
Can Any one tell me why this program is crashing . testFunc() { int a1, *ptr ; f=&a1; f=f+1; return 0; }
5
by: news.cyberlink.ch | last post by:
Hi, We have a DB2 version 7 fixpack 14 installed on Windows 200 at a customer site that is crashing at regular intervals.Everything was working fine for over many years, now since about one...
1
by: mwallis76 | last post by:
Upon clicking on a hyperlink generated in a ASP.NET GridView control, I am finding Firefox 1.5 to crash. However, when clicking on the same link, Internet Explorer 6.0 works just fine and is...
2
by: =?Utf-8?B?QW5uZXh4eHh4eHg=?= | last post by:
My computer keeps crashing. The files created when it does this are: WERdc15.dir00\Mini090708-03.dmp WERdc15.dir00\sysdata.xml has anybody any idea of what these files are and the solution to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.