Notifications
Clear all

Watchdog Timer

3 Posts
3 Users
0 Reactions
13.1 K Views
Posts: 6
Topic starter
(@slartibartfast)
Active Member
Joined: 19 years ago
[#5451]

This is an improvement taken from embedded programming. I have had several problems with a custom plugin failing and causing Vixen to crash. The improvement would reset Vixen and the programs if a error occurs. It would generate an error log to allow you to check and see what error ocurred. This improvement would prevent having to do a manual reset every time an error occurs.


2 Replies
rlilly
Posts: 993
(@rlilly)
Noble Member
Joined: 19 years ago

Wow, too much information without a history...

Can you break it down?


Reply
NogginBoink
Posts: 482
(@nogginboink)
Honorable Member
Joined: 19 years ago

You can't have a watchdog timer from inside the process being watched.

You'd need a separate process to do that. If you're into Win32 programming it's really not hard... obtain a handle to the process and wait for it to become signaled in WaitForSingleObject. When it becomes signaled, kick off a new instance of the process.

You could probably do the same in the .NET framework by wading through a few abstractions.

(Of course, in this case, a better solution would be to fix the problem with the custom plugin.)


Reply
Share: