Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Help Writing C# Windows Service - Stops after 30 minutes


  • Please log in to reply

#1
Immortalarena

Immortalarena

    Member

  • Member
  • PipPipPip
  • 216 posts
We have a problem where tasks get "locked" on the server randomly. We want to write a process that checks the process every 30 seconds. If it's CPU is over 25%, we want it to wait 30 seconds, then check it again. If it's over 25%, it will kill the process and send an email to notify us. This is the first Windows Process I've written, so it might not be using the best method. The problem with my code is that after 30 minutes it seems that the process gets lost.

Attached is a Zip file containing my code.

Any help in refining the code or identifying the issue is greatly appreciated.

Thanks!

Attached Files


  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP