Hey,
I'm getting a random error message in my program on a handheld that seems to happen when the program loads up. It comes up saying Fatal Application Error Exception 0x80000002. Looking that code up showed it as being a memory leak problem.
The table adapters simply fill combo boxes with necessary customer and stock group info.
At the end of the program on exit, I do dispose these objects, but yet I still get the error when I go back into the program.
Is there something I'm leaving out that would cause this?
I'm running WinCE5.0 using C# and a SQL Server Compact database.
I'm getting a random error message in my program on a handheld that seems to happen when the program loads up. It comes up saying Fatal Application Error Exception 0x80000002. Looking that code up showed it as being a memory leak problem.
The table adapters simply fill combo boxes with necessary customer and stock group info.
Code:
private void FormTran_Load(object sender, EventArgs e) { try { this.customerTableAdapter.Fill(this.acornDatabaseDataSet.Customer); this.stockTableAdapter.FillGroup(this.acornDatabaseDataSet.Stock); } catch { } }
Code:
private void btnExit_Click(object sender, EventArgs e) { this.acornDatabaseDataSet.Dispose(); this.customerTableAdapter.Dispose(); this.customerBindingSource.Dispose(); this.stockTableAdapter.Dispose(); this.stockBindingSource.Dispose(); this.Close(); this.Dispose(); }
I'm running WinCE5.0 using C# and a SQL Server Compact database.
Comment