473,397 Members | 2,116 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,397 software developers and data experts.

WinCE C# Exception 0x80000002

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.

Expand|Select|Wrap|Line Numbers
  1. private void FormTran_Load(object sender, EventArgs e)
  2. {
  3. try
  4. {
  5.      this.customerTableAdapter.Fill(this.acornDatabaseDataSet.Customer);
  6.      this.stockTableAdapter.FillGroup(this.acornDatabaseDataSet.Stock);
  7. }
  8. catch
  9. {
  10. }
  11. }
  12.  
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.


Expand|Select|Wrap|Line Numbers
  1. private void btnExit_Click(object sender, EventArgs e)
  2. {
  3.       this.acornDatabaseDataSet.Dispose();
  4.       this.customerTableAdapter.Dispose();
  5.       this.customerBindingSource.Dispose();
  6.       this.stockTableAdapter.Dispose();
  7.       this.stockBindingSource.Dispose();
  8.       this.Close();
  9.       this.Dispose();
  10. }
  11.  
  12.  
Is there something I'm leaving out that would cause this?

I'm running WinCE5.0 using C# and a SQL Server Compact database.
Mar 4 '08 #1
5 8600
Plater
7,872 Expert 4TB
What version of CF are you running on the system?
Can you start a debug session?
Mar 4 '08 #2
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.

Expand|Select|Wrap|Line Numbers
  1. private void FormTran_Load(object sender, EventArgs e)
  2. {
  3. try
  4. {
  5.      this.customerTableAdapter.Fill(this.acornDatabaseDataSet.Customer);
  6.      this.stockTableAdapter.FillGroup(this.acornDatabaseDataSet.Stock);
  7. }
  8. catch
  9. {
  10. }
  11. }
  12.  
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.


Expand|Select|Wrap|Line Numbers
  1. private void btnExit_Click(object sender, EventArgs e)
  2. {
  3.       this.acornDatabaseDataSet.Dispose();
  4.       this.customerTableAdapter.Dispose();
  5.       this.customerBindingSource.Dispose();
  6.       this.stockTableAdapter.Dispose();
  7.       this.stockBindingSource.Dispose();
  8.       this.Close();
  9.       this.Dispose();
  10. }
  11.  
  12.  
Is there something I'm leaving out that would cause this?

I'm running WinCE5.0 using C# and a SQL Server Compact database.
You might be disposing of an object that is already null. This would cause a memory error.

~mona
Mar 4 '08 #3
What version of CF are you running on the system?
Can you start a debug session?
Version 2.0
I've been trying that but it's hard to simulate since the error is random.

You might be disposing of an object that is already null. This would cause a memory error.

~mona
The objects I have listed are used. I don't see how they would lose their values while the program is still in operation.
Mar 5 '08 #4
Plater
7,872 Expert 4TB
Well are you manually disposing objects that will get disposd by the form's disposing function?
Mar 5 '08 #5
Well are you manually disposing objects that will get disposd by the form's disposing function?
Even without the code on exit I would still get the error.

I found a solution though. It involved getting rid of all the components that were added to the program and replacing it with code of my own that would do the job instead. It appears to have worked.
Mar 7 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: jason | last post by:
Is there Python ON WinCE.net(x86) platform?
0
by: //\\//\\RLe | last post by:
We are testing one of the CASIO hand device on WinCE and wireless module... while trying to run any Oracle Forms in web browser found that we need JavaInitiator for WinCE and... can't find any on...
1
by: Beyers | last post by:
Hi We are using active sync to connect VS.NET to a WinCE hardware platform for debuggging the application we are writing for this platform. It worked well for a month, and now all of a sudden...
1
by: Frederic_BD | last post by:
Hello! I am trying to get a list of all the process running on WinCE. I first developed my code on NT (which is working fine) and now I am porting it to WinCE 4.20. I am using embedded Visual...
2
by: parth_mca | last post by:
i want to start WinCE programming in vb.net... which version of visual studio.net supports winCE programming for PocketPC ? and where should i start from...?
2
by: bokiteam | last post by:
Hi All, I am developing a WinCE project, when I include datagrid, it says no define.. could you please advice? it works on Win32 project by the same code... Thank you very much for you...
3
by: pcm | last post by:
Hi, Has anyone ever worked on a Python-WinCE-based program that involved serial port management ? Regards, Philippe
1
by: TheSebaster | last post by:
I wrote the following lines of code under Microsoft Visual Studio 2005: I compile my WinCE c++ application importing MyInterop.tlb generated file. The MyInterop.tlh generated file do not contain my...
2
by: clintonG | last post by:
Okay I'm lazy (today) and asking without doing a lot of searching for the moment but does the framework run on a device using WinCE and can IIS run on that same device perchance? Finally will WPF...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.