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.
Expand|Select|Wrap|Line Numbers
- private void FormTran_Load(object sender, EventArgs e)
- {
- try
- {
- this.customerTableAdapter.Fill(this.acornDatabaseDataSet.Customer);
- this.stockTableAdapter.FillGroup(this.acornDatabaseDataSet.Stock);
- }
- catch
- {
- }
- }
Expand|Select|Wrap|Line Numbers
- 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.