Compact Framework 3.5 응용 프로그램에서 메모리 누수가 발생하여 구성 요소가 내 양식의 IContainer components
필드에 추가되지 않는 이유를 발견했다고 생각합니다. Visual Studio 2008이 각 구성 요소를 추가하지 않는 이유는 무엇입니까?이를 해결할 방법이 있습니까?CF 3.5 메모리 누수 - 구성 요소가 인스턴스화 된 이유는 무엇입니까?하지만 구성 요소가 추가 호출되지 않았습니다 (...)?
//Form overrides dispose to clean up the component list.
[System.Diagnostics.DebuggerNonUserCode()]
protected override void Dispose(bool disposing)
{
try {
if (disposing && components != null) {
// Components is disposed... but nothing was ever added to it!!!
components.Dispose();
}
} finally {
base.Dispose(disposing);
}
}
//Required by the Windows Form Designer
private System.ComponentModel.IContainer components;
//NOTE: The following procedure is required by the Windows Form Designer
//It can be modified using the Windows Form Designer.
//Do not modify it using the code editor.
[System.Diagnostics.DebuggerStepThrough()]
private void InitializeComponent()
{
this.lblName = new System.Windows.Forms.Label();
this.butNext = new System.Windows.Forms.Button();
this.butPrev = new System.Windows.Forms.Button();
this.butClose = new System.Windows.Forms.Button();
this.butMore = new System.Windows.Forms.Button();
this.SuspendLayout();
//
//lblName
//
this.lblName.Font = new System.Drawing.Font("Tahoma", 12f, System.Drawing.FontStyle.Bold);
this.lblName.Location = new System.Drawing.Point(6, 38);
this.lblName.Name = "lblName";
this.lblName.Size = new System.Drawing.Size(373, 22);
this.lblName.Tag = "Estimated Speed ({0})";
this.lblName.Text = "Test";
// ... SNIP ...
}
구성 요소 만 사용하고 있으며 컨트롤 만 사용하고 있습니다. 그들은 부모님이 처분합니다. –