V
vachesacree
Hello everybody,
First of all, sorry for the long post but we'd like to describe the
problem in as much detail as possible, so it's perhaps easier to help
Also, if this post is not particularly suitable for this group,
please point me to the most appropiate one. Thanks.
We have developed an application in .NET Compact Framework 2.0 which we
are running currently under Windows CE 4.2 (the device is a Qtek 2020,
which says it runs Windows Mobile 2003) . The application has to manage
a number of forms, some of which can get a bit crowded sometimes,
communications with a server (done via Socket objects) and a couple of
databases (SQL Server CE).
The problem we are facing is that sometimes (we haven't yet been able
to exactly determine when) the application quits unexpectedly leaving
no trace of the possible error whatsoever. No exceptions that can be
caught in a managed try-catch block, no system window informing that an
exception has occurred... nothing. It just shuts down silently.
If we attach to our process in the smart device via Visual Studio 2005
(debugging native code), at some point a native "Illegal instruction"
exception with code 0xC000001D is thrown. This seems to happen more or
less arbitrarily, and doesn't necessarily happen all the times the
application is run. This exception is not caught by any try-catch block
that we have in our managed code. We have implemented a handler for the
AppDomain.CurrentDomain.UnhandledException event, but it isn't able to
stop this "Illegal instruction" exception. We have also tried to use
the Remote Process Viewer that comes with Visual Studio 2005, but it
has been of little help so far.
We have tested the application under several conditions, using up all
the available memory (32 MB) or using as little memory as possible,
running it for long periods of time, using GPRS, Bluetooth and
ActiveSync as the transport mechanisms for the communications with the
server... but we haven't been able to find any correlation between any
set of certain testing conditions and the crashes. Sometimes it exits
just after starting, sometimes after a long run, sometimes it works
fine...
We have enabled the interop and loader logs that the compact framework
provides us with, but haven't been able to find much interesting in
them. We do get usually an unresolved error of the type "Missing type.
Class xxxxxx" in the loader.log file, but not always (in many cases we
get this message but the app runs fine, in other cases we might not get
the error but the app would quit unexpectedly anyway).
At this point we are somewhat stuck with this problem. We have found
that another application, similar to this one but perhaps a bit less
complex, ran in a much smoother way under Windows CE 3.0 (Pocket PC
2002). We have been able to test our current app with CE 3.0 as well,
but not as deeply as we would have liked, and we have found it is also
more stable. We tried to follow this path and found this KB article at
microsoft:
http://support.microsoft.com/kb/835932
This article points out that under Windows CE 4.2 the same symptoms we
are having can occur with C++ dlls. Is it possible that this is our
problem? Our code is entirely managed, so I'm not completely sure about
how the problem described in that article could apply to us.
Last, the application was previously done in .NET CF 1.0 SP3, but we
moved to 2.0 as soon as we could since it did solve some other issues
we had. However, we were hoping that this problem of the vanishing
application would also disappear, but it didn't.
Again, sorry for the long post and thanks a lot for any help, ideas,
pointers to additional info, etc. that you can provide with.
Marcelo
msoria --nospam-- at movelis.com
First of all, sorry for the long post but we'd like to describe the
problem in as much detail as possible, so it's perhaps easier to help
Also, if this post is not particularly suitable for this group,
please point me to the most appropiate one. Thanks.
We have developed an application in .NET Compact Framework 2.0 which we
are running currently under Windows CE 4.2 (the device is a Qtek 2020,
which says it runs Windows Mobile 2003) . The application has to manage
a number of forms, some of which can get a bit crowded sometimes,
communications with a server (done via Socket objects) and a couple of
databases (SQL Server CE).
The problem we are facing is that sometimes (we haven't yet been able
to exactly determine when) the application quits unexpectedly leaving
no trace of the possible error whatsoever. No exceptions that can be
caught in a managed try-catch block, no system window informing that an
exception has occurred... nothing. It just shuts down silently.
If we attach to our process in the smart device via Visual Studio 2005
(debugging native code), at some point a native "Illegal instruction"
exception with code 0xC000001D is thrown. This seems to happen more or
less arbitrarily, and doesn't necessarily happen all the times the
application is run. This exception is not caught by any try-catch block
that we have in our managed code. We have implemented a handler for the
AppDomain.CurrentDomain.UnhandledException event, but it isn't able to
stop this "Illegal instruction" exception. We have also tried to use
the Remote Process Viewer that comes with Visual Studio 2005, but it
has been of little help so far.
We have tested the application under several conditions, using up all
the available memory (32 MB) or using as little memory as possible,
running it for long periods of time, using GPRS, Bluetooth and
ActiveSync as the transport mechanisms for the communications with the
server... but we haven't been able to find any correlation between any
set of certain testing conditions and the crashes. Sometimes it exits
just after starting, sometimes after a long run, sometimes it works
fine...
We have enabled the interop and loader logs that the compact framework
provides us with, but haven't been able to find much interesting in
them. We do get usually an unresolved error of the type "Missing type.
Class xxxxxx" in the loader.log file, but not always (in many cases we
get this message but the app runs fine, in other cases we might not get
the error but the app would quit unexpectedly anyway).
At this point we are somewhat stuck with this problem. We have found
that another application, similar to this one but perhaps a bit less
complex, ran in a much smoother way under Windows CE 3.0 (Pocket PC
2002). We have been able to test our current app with CE 3.0 as well,
but not as deeply as we would have liked, and we have found it is also
more stable. We tried to follow this path and found this KB article at
microsoft:
http://support.microsoft.com/kb/835932
This article points out that under Windows CE 4.2 the same symptoms we
are having can occur with C++ dlls. Is it possible that this is our
problem? Our code is entirely managed, so I'm not completely sure about
how the problem described in that article could apply to us.
Last, the application was previously done in .NET CF 1.0 SP3, but we
moved to 2.0 as soon as we could since it did solve some other issues
we had. However, we were hoping that this problem of the vanishing
application would also disappear, but it didn't.
Again, sorry for the long post and thanks a lot for any help, ideas,
pointers to additional info, etc. that you can provide with.
Marcelo
msoria --nospam-- at movelis.com