From: sarwasva on
Hi All,

I am facing a wired problem in my .net CF application which is written
in
C#. The application some times shows Native Exception :

A native exception has occurred in MyPDAApp.exe. Select Quit and then
restart this program or select Details for more information." Selected
details and got, "Exception code = 0xc0000005. Exception address =
0x00c79d34. Reading = 0x000004."

More info about the application:

1. The application interects with the SQL Server Mobile database as
well as
with some of the Libraries provided by a middleware.

2. This exception doesn't occure frequently and there is no fixed
location
in the code where we can trace it.

3. The application exe size is around 1.5 MB

4. SQL Server mobile database .sdf size is around 6MB

5. application is dealing with lots of string operation

I read a lot of arlticles on this particular exception but most of them
are
either pointing towards the SP 3 for .NetCF 1.1 but I am using version
2.0
and Windows Mobile 5 device.
Some other articles are pointing towards string operation related
problems
while P/Invoke.

Any help would be highly appreciated.

Sarwa

From: " ctacke/>" on
It's an access violation. Something is using an invalid pointer. I'd look
at any P/Invokes first.

-Chris

<sarwasva(a)gmail.com> wrote in message
news:1154040715.249806.255220(a)b28g2000cwb.googlegroups.com...
> Hi All,
>
> I am facing a wired problem in my .net CF application which is written
> in
> C#. The application some times shows Native Exception :
>
> A native exception has occurred in MyPDAApp.exe. Select Quit and then
> restart this program or select Details for more information." Selected
> details and got, "Exception code = 0xc0000005. Exception address =
> 0x00c79d34. Reading = 0x000004."
>
> More info about the application:
>
> 1. The application interects with the SQL Server Mobile database as
> well as
> with some of the Libraries provided by a middleware.
>
> 2. This exception doesn't occure frequently and there is no fixed
> location
> in the code where we can trace it.
>
> 3. The application exe size is around 1.5 MB
>
> 4. SQL Server mobile database .sdf size is around 6MB
>
> 5. application is dealing with lots of string operation
>
> I read a lot of arlticles on this particular exception but most of them
> are
> either pointing towards the SP 3 for .NetCF 1.1 but I am using version
> 2.0
> and Windows Mobile 5 device.
> Some other articles are pointing towards string operation related
> problems
> while P/Invoke.
>
> Any help would be highly appreciated.
>
> Sarwa
>


From: sarwasva on
But the the exception is coming even before the application use any
P/Invoke. Is it possible that some string operation is causing this
native exception ?

<ctacke/> wrote:
> It's an access violation. Something is using an invalid pointer. I'd look
> at any P/Invokes first.
>
> -Chris
>
> <sarwasva(a)gmail.com> wrote in message
> news:1154040715.249806.255220(a)b28g2000cwb.googlegroups.com...
> > Hi All,
> >
> > I am facing a wired problem in my .net CF application which is written
> > in
> > C#. The application some times shows Native Exception :
> >
> > A native exception has occurred in MyPDAApp.exe. Select Quit and then
> > restart this program or select Details for more information." Selected
> > details and got, "Exception code = 0xc0000005. Exception address =
> > 0x00c79d34. Reading = 0x000004."
> >
> > More info about the application:
> >
> > 1. The application interects with the SQL Server Mobile database as
> > well as
> > with some of the Libraries provided by a middleware.
> >
> > 2. This exception doesn't occure frequently and there is no fixed
> > location
> > in the code where we can trace it.
> >
> > 3. The application exe size is around 1.5 MB
> >
> > 4. SQL Server mobile database .sdf size is around 6MB
> >
> > 5. application is dealing with lots of string operation
> >
> > I read a lot of arlticles on this particular exception but most of them
> > are
> > either pointing towards the SP 3 for .NetCF 1.1 but I am using version
> > 2.0
> > and Windows Mobile 5 device.
> > Some other articles are pointing towards string operation related
> > problems
> > while P/Invoke.
> >
> > Any help would be highly appreciated.
> >
> > Sarwa
> >

From: " ctacke/>" on
Unlikely. Are you Disposing objects that have managed resources (that you
wrote)?

-Chris


<sarwasva(a)gmail.com> wrote in message
news:1154053277.248037.174410(a)75g2000cwc.googlegroups.com...
> But the the exception is coming even before the application use any
> P/Invoke. Is it possible that some string operation is causing this
> native exception ?
>
> <ctacke/> wrote:
>> It's an access violation. Something is using an invalid pointer. I'd
>> look
>> at any P/Invokes first.
>>
>> -Chris
>>
>> <sarwasva(a)gmail.com> wrote in message
>> news:1154040715.249806.255220(a)b28g2000cwb.googlegroups.com...
>> > Hi All,
>> >
>> > I am facing a wired problem in my .net CF application which is written
>> > in
>> > C#. The application some times shows Native Exception :
>> >
>> > A native exception has occurred in MyPDAApp.exe. Select Quit and then
>> > restart this program or select Details for more information." Selected
>> > details and got, "Exception code = 0xc0000005. Exception address =
>> > 0x00c79d34. Reading = 0x000004."
>> >
>> > More info about the application:
>> >
>> > 1. The application interects with the SQL Server Mobile database as
>> > well as
>> > with some of the Libraries provided by a middleware.
>> >
>> > 2. This exception doesn't occure frequently and there is no fixed
>> > location
>> > in the code where we can trace it.
>> >
>> > 3. The application exe size is around 1.5 MB
>> >
>> > 4. SQL Server mobile database .sdf size is around 6MB
>> >
>> > 5. application is dealing with lots of string operation
>> >
>> > I read a lot of arlticles on this particular exception but most of them
>> > are
>> > either pointing towards the SP 3 for .NetCF 1.1 but I am using version
>> > 2.0
>> > and Windows Mobile 5 device.
>> > Some other articles are pointing towards string operation related
>> > problems
>> > while P/Invoke.
>> >
>> > Any help would be highly appreciated.
>> >
>> > Sarwa
>> >
>


From: sarwasva on
Chris,

I am setting objects to null, as soon as I am done with it. Is that not
enough ?

-Sarwa

<ctacke/> wrote:
> Unlikely. Are you Disposing objects that have managed resources (that you
> wrote)?
>
> -Chris
>
>
> <sarwasva(a)gmail.com> wrote in message
> news:1154053277.248037.174410(a)75g2000cwc.googlegroups.com...
> > But the the exception is coming even before the application use any
> > P/Invoke. Is it possible that some string operation is causing this
> > native exception ?
> >
> > <ctacke/> wrote:
> >> It's an access violation. Something is using an invalid pointer. I'd
> >> look
> >> at any P/Invokes first.
> >>
> >> -Chris
> >>
> >> <sarwasva(a)gmail.com> wrote in message
> >> news:1154040715.249806.255220(a)b28g2000cwb.googlegroups.com...
> >> > Hi All,
> >> >
> >> > I am facing a wired problem in my .net CF application which is written
> >> > in
> >> > C#. The application some times shows Native Exception :
> >> >
> >> > A native exception has occurred in MyPDAApp.exe. Select Quit and then
> >> > restart this program or select Details for more information." Selected
> >> > details and got, "Exception code = 0xc0000005. Exception address =
> >> > 0x00c79d34. Reading = 0x000004."
> >> >
> >> > More info about the application:
> >> >
> >> > 1. The application interects with the SQL Server Mobile database as
> >> > well as
> >> > with some of the Libraries provided by a middleware.
> >> >
> >> > 2. This exception doesn't occure frequently and there is no fixed
> >> > location
> >> > in the code where we can trace it.
> >> >
> >> > 3. The application exe size is around 1.5 MB
> >> >
> >> > 4. SQL Server mobile database .sdf size is around 6MB
> >> >
> >> > 5. application is dealing with lots of string operation
> >> >
> >> > I read a lot of arlticles on this particular exception but most of them
> >> > are
> >> > either pointing towards the SP 3 for .NetCF 1.1 but I am using version
> >> > 2.0
> >> > and Windows Mobile 5 device.
> >> > Some other articles are pointing towards string operation related
> >> > problems
> >> > while P/Invoke.
> >> >
> >> > Any help would be highly appreciated.
> >> >
> >> > Sarwa
> >> >
> >

 |  Next  |  Last
Pages: 1 2 3
Prev: C# FTP
Next: Win CE 5.0 VS2005 connect