Re: Stable application (non-stop, non-hanging...)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Daniel Moth (dmoth74_at_hotmail.com)
Date: 12/16/04


Date: Thu, 16 Dec 2004 15:54:34 -0000

You can have a CF app watchdogging another CF app it is just my suggestion
that the dog is an eVC app. Why? Well it doesn't feel right to use CF for a
blind process (the dog doesn't have any GUI) which you want to be as light
as possible (you don't want to complicate it to the extent where you need a
dog for the dog) and which would mostly include pinvokes (waiting on event
in a loop, restarting process/unit).

Here is the direct link to my IPC blog entry (I guess I need a search
feature for my site):
http://www.danielmoth.com/Blog/2004/09/ipc-with-cf-on-ce-part-1.html
http://www.danielmoth.com/Blog/2004/09/ipc-with-cf-on-ce-part-2.html

I specifically suggest named events.

Cheers
Daniel

-- 
http://www.danielmoth.com/Blog/
"Tod Johnson" <todjohnson@bcd.com> wrote in message 
news:%23GTGZW44EHA.924@TK2MSFTNGP14.phx.gbl...
> Thank you Daniel fot your answer. Can you tell me the reason of C 
> watchdog? Why it can't be written on C# for CF.NET? And how could be 
> implemented IPC on CF.NET 1.0?
>
> Daniel Moth wrote:
>> Yes, create a separate watchdog process. From your main application 
>> "kick" it (some prefer to say "stroke", "pet" etc) on a certain interval. 
>> If the watchdog does not receive a kick within a certain interval, it 
>> takes the action you specified as per your requirements (restart app, 
>> restart unit etc). Your kick can simply be setting an event (check out 
>> the IPC post on my blog for details on that); you should definitely do it 
>> from your main (UI) thread and depending on your requirements do it from 
>> other threads too.
>>
>> I have implemented the above for my app (again details on my blog) on our 
>> CE-based unit. The watchdog is a C app which itself kicks the hardware 
>> watchdog on our board. I will blog about the mechanism soon but the above 
>> should be all you need.
>>
>> Cheers
>> Daniel 


Relevant Pages

  • Re: Stable application (non-stop, non-hanging...)
    ... Thank you Daniel fot your answer. ... > watchdog does not receive a kick within a certain interval, ... > blog for details on that); you should definitely do it from your main ... > I have implemented the above for my app on our ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Application monitoring - high availability service levels
    ... > restart is difficult under the current circumstances. ... I have a canine too - a thread in a watchdog unit. ... (these are needed in the app anyway). ... time of the next poll, the thread assembles a command line, ensuring that a ...
    (borland.public.delphi.non-technical)
  • Re: The SA Mess
    ... The app is obfuscated. ... Shift to .NET talking to a SQL db on the local network, ... have a dog. ... Go through a web service on top of all of that, ...
    (microsoft.public.sqlserver.security)
  • Re: Watchdog Timer and restarting winCE
    ... the watchdog timer would always restart the system even after my app was ... I run it on CE 5.0 it will always restart the device after my app ...
    (microsoft.public.windowsce.app.development)
  • Re: How to detect when a terminal session is running a single application
    ... application" to run the watchdog if it isn't already? ... The main app to be watched is not written by me, ... sending messages does not work across sessions, so two EXE solution was ...
    (microsoft.public.vb.winapi)