From: Kevin S. on 16 Apr 2010 16:34 Hi, I have an application (fairly large) written in C# (VS2008). It is built for the Pocket PC 2003 platform, but runs on PPC2003, WinCE 4.2, WM5, WM6.1. I am running this on several Intermec mobile computers: 700 color series, CN2, CN3, CN50, and CK3. I'm also distributing CF 2.0 (for those devices that don't have it) and SQL Server CE 3.5 Just recently, I've run into a problem where the user will tap on the application icon and it will "hang" for about 3-5 minutes. When it comes back, it says: A native exception has occurred in <my app name>. Select Quit and then restart this program, or select Details for more information. When the [Details] button is tapped, the following is displayed: ExceptionCode: 0xc0000005 ExceptionAddress: 0x78285d28 (obviously, this is different every time) Reading: 0x00000040 (this may also be different every time) I've found a few items that talk about accessing a database in different threads at the same time. I don't think that's my problem. I've deleted the database and run the application (which will create the database automatically). I still get the message and no database was created. I also found a few items that talk about issues with CF2 and SQL Server Compact 3.5. I'm not doing anything with a database until the user logs in. So, this may not be the problem. Has anyone run into this type of error? I know that Exception Code 0xc0000005 is a pretty vague code. Thanks in advance for any help. Kevin S.
From: Paul G. Tobey [eMVP] paultobey _at_ earthlink _dot_ on 16 Apr 2010 20:14 0xc0000005 is an access exception. Generally, you'd expect that to occur if you're using an invalid pointer or some code that you are calling is using an invalid pointer. Since it seems that you're saying that the main window is never shown, look at the code triggered in Form_Load() and see what it does. Commenting out some of that code, strategically, might narrow down who is doing the wrong thing. I have a fair amount of code that does SQLCE 3.5 stuff on startup and it never crashes in that way, so I'm inclined to suspect some P/Invoking that you're doing, etc. Paul T. "Kevin S." wrote: > Hi, > > I have an application (fairly large) written in C# (VS2008). It is built for the > Pocket PC 2003 platform, but runs on PPC2003, WinCE 4.2, WM5, WM6.1. I am > running this on several Intermec mobile computers: 700 color series, CN2, CN3, > CN50, and CK3. I'm also distributing CF 2.0 (for those devices that don't have > it) and SQL Server CE 3.5 > > Just recently, I've run into a problem where the user will tap on the > application icon and it will "hang" for about 3-5 minutes. When it comes back, > it says: > > A native exception has occurred in <my app name>. Select Quit and then > restart this program, or select Details for more information. > > When the [Details] button is tapped, the following is displayed: > > ExceptionCode: 0xc0000005 > ExceptionAddress: 0x78285d28 (obviously, this is different every time) > Reading: 0x00000040 (this may also be different every time) > > I've found a few items that talk about accessing a database in different threads > at the same time. I don't think that's my problem. I've deleted the database and > run the application (which will create the database automatically). I still get > the message and no database was created. > > I also found a few items that talk about issues with CF2 and SQL Server Compact > 3.5. I'm not doing anything with a database until the user logs in. So, this may > not be the problem. > > Has anyone run into this type of error? I know that Exception Code 0xc0000005 is > a pretty vague code. > > Thanks in advance for any help. > > Kevin S. > . >
From: Kevin S. on 17 Apr 2010 11:11 Thanks, Paul. I think I forgot to mention that this does not happen on every device. So, it's hard for me to simply debug it to find the faulty code. I've not personally experienced it on a device at the office. It seems to happen on devices out in the field. Thanks for the advice, though. If I can get the problem to happen locally, or I can get one of the devices that's having the problem, I try it out. Kevin On 4/16/2010 7:14 PM, Paul G. Tobey [eMVP] wrote: > 0xc0000005 is an access exception. Generally, you'd expect that to occur if > you're using an invalid pointer or some code that you are calling is using an > invalid pointer. Since it seems that you're saying that the main window is > never shown, look at the code triggered in Form_Load() and see what it does. > Commenting out some of that code, strategically, might narrow down who is > doing the wrong thing. I have a fair amount of code that does SQLCE 3.5 > stuff on startup and it never crashes in that way, so I'm inclined to suspect > some P/Invoking that you're doing, etc. > > Paul T. > > "Kevin S." wrote: > >> Hi, >> >> I have an application (fairly large) written in C# (VS2008). It is built for the >> Pocket PC 2003 platform, but runs on PPC2003, WinCE 4.2, WM5, WM6.1. I am >> running this on several Intermec mobile computers: 700 color series, CN2, CN3, >> CN50, and CK3. I'm also distributing CF 2.0 (for those devices that don't have >> it) and SQL Server CE 3.5 >> >> Just recently, I've run into a problem where the user will tap on the >> application icon and it will "hang" for about 3-5 minutes. When it comes back, >> it says: >> >> A native exception has occurred in<my app name>. Select Quit and then >> restart this program, or select Details for more information. >> >> When the [Details] button is tapped, the following is displayed: >> >> ExceptionCode: 0xc0000005 >> ExceptionAddress: 0x78285d28 (obviously, this is different every time) >> Reading: 0x00000040 (this may also be different every time) >> >> I've found a few items that talk about accessing a database in different threads >> at the same time. I don't think that's my problem. I've deleted the database and >> run the application (which will create the database automatically). I still get >> the message and no database was created. >> >> I also found a few items that talk about issues with CF2 and SQL Server Compact >> 3.5. I'm not doing anything with a database until the user logs in. So, this may >> not be the problem. >> >> Has anyone run into this type of error? I know that Exception Code 0xc0000005 is >> a pretty vague code. >> >> Thanks in advance for any help. >> >> Kevin S. >> . >>
|
Pages: 1 Prev: Camera take picture Next: Dial special characters "*" and "#" |