Re: Strange sudden shutdown issue with CF app



It's quite possible that other activity on the device is causing memory
pressure and a WM_HIBERNATE message is then broadcast to all apps. Your app
would receive that and do a GC.Collect and it may also be shut down by the
OS. You can always handle the closing event to prevent that - an
IMessageFilter is also an option for knowing when these events occur.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


"Shloma Baum" <shlomabaum-spam@xxxxxxxxx> wrote in message
news:%23zbkp$J8HHA.5404@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

We have created an app that basically connects to a web service gets data,
then stores it locally on the device, and when a record needs to be
modified/added the system first tries to connect the web server sees if
its availible, if not then it stores in locally on the device until the
connection comes back, now I noticed that if the device does not mess
around with the data connection then the application sits nicely as long
as its open, and never gets shut down (unless the system automatically
shuts it down due to memory constraints).

However on devices that has a phone, and even more if the device is
connected to an exchange server with push email and/or there are calls for
a longer period of time, if you go back to the application afterword and
while doing basically anything that worked before (before a lengthy call
or so, don't know really what is causing but I've seen some indication
that this might be the case) like a charm but now doing that same action
will blow out the program, most of the times without any exception, and
sometimes I would get NullReferenceException and the trace will show
really basic internal trace, and everytime something else where the same
action before worked just fine, and also note that those exceptions point
no where to anything related to the connectivity of the device, but mostly
front end stuff. But again most of the time I get no exception at all but
just simply disappears.

It might be that there are some external native exception that is not
being chought but am puzzled at where to start looking.

Hope someone might come up with some, as I'm puzzled and dont know where
to focus on.

Regards and thanks in advance
Shloma


.



Relevant Pages

  • Re: Strange sudden shutdown issue with CF app
    ... We have created an app that basically connects to a web service gets data, then stores it locally on the device, and when a record needs to be modified/added the system first tries to connect the web server sees if its availible, if not then it stores in locally on the device until the connection comes back, now I noticed that if the device does not mess around with the data connection then the application sits nicely as long as its open, and never gets shut down. ... However on devices that has a phone, and even more if the device is connected to an exchange server with push email and/or there are calls for a longer period of time, if you go back to the application afterword and while doing basically anything that worked before like a charm but now doing that same action will blow out the program, most of the times without any exception, and sometimes I would get NullReferenceException and the trace will show really basic internal trace, and everytime something else where the same action before worked just fine, and also note that those exceptions point no where to anything related to the connectivity of the device, but mostly front end stuff. ... But again most of the time I get no exception at all but just simply disappears. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Strange sudden shutdown issue with CF app
    ... We have created an app that basically connects to a web service gets data, then stores it locally on the device, and when a record needs to be modified/added the system first tries to connect the web server sees if its availible, if not then it stores in locally on the device until the connection comes back, now I noticed that if the device does not mess around with the data connection then the application sits nicely as long as its open, and never gets shut down. ... However on devices that has a phone, and even more if the device is connected to an exchange server with push email and/or there are calls for a longer period of time, if you go back to the application afterword and while doing basically anything that worked before like a charm but now doing that same action will blow out the program, most of the times without any exception, and sometimes I would get NullReferenceException and the trace will show really basic internal trace, and everytime something else where the same action before worked just fine, and also note that those exceptions point no where to anything related to the connectivity of the device, but mostly front end stuff. ... But again most of the time I get no exception at all but just simply disappears. ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: ASP.NET 2.0 - a newbie question
    ... I try to build the first app described in "ASP.NET 2.0 Everyday Apps ... the exception can be identified using the exception stack trace below. ... A connection attempt failed because the ... connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: TCPClient - Detectiing loss of remote host connection
    ... | wondering if the detection of connection loss is possible through the ... | a TCPClient in one app and a Listener with Client in the other app. ... | there is no exception thrown. ...
    (microsoft.public.dotnet.framework)
  • Re: A month with a Nokia n95 (long)
    ... and can't play. ... One of these days I will get around to writing a small app to do it all on the fly. ... HSDPA works well and you can have more than one internet connection going at once. ... For example I can use it as a modem for my laptop and also "listen again" to a Beeb radio programme. ...
    (uk.telecom.mobile)