Windows CE & Pocket PC

Moderators: None (Apply to moderate this forum)
Number of threads: 324
Number of posts: 425

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
WINCE Software Watchdog ? Posted by synen on 1 Jun 2010 at 7:45 AM
I am new to WINCE and would appreciate some help in a simple software watchdog solution using VB.NET ( My current Wince device does not support a Hardware Watchdog timer)

I am using a console application to launch my main CE Forms application so that I can have a handle on the main application to check its progress, if it closes for any reason, this will then cause a reboot using KernelIoControl Lib "coredll.dll". - This works fine.

Once my simple console application launches the main program - it simply loops in a Thread Sleep and increments a counter, after a certain count value say approx 10 seconds it will then cause a reboot unless the main application "somehow" resets this count to zero.

My problem is that I need a method or a fast way that the main application can signal to this console application (or the console application can check a flag in main application) to reset this count (or via a flag) at regular intervals which is generated from a Timer running in the main application.

I assume I will need to use some kind of pinvoke API to do this ? - but I am unsure of what is the best and fastest, cleanest way to do this?

Thanks in advance



Report
This post has been deleted. Posted by session on 9 Jun 2010 at 4:18 AM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.