Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8258793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:40:07+00:00 2026-06-08T02:40:07+00:00

I am developing an application in Visual C# using winforms. The application is basically

  • 0

I am developing an application in Visual C# using winforms.

The application is basically a screen with three tabs. It shows values from processes running on the system per second (using System.Diagnostics.Process[] ).

It generates and updates lot of numbers and calculations (around 4000/second). But after 10000 iterations or ~45 minutes of work, it just crashes and the amazing part is It always crashes around the same time.

The RAM involved here is just 70mb and CPU load never goes above 35% for the app under windows xp and windows 7. The aim of the app is to allow users to view processes running on the system with the cpuload and memory load. we cannot suggest taskmanager due to security reasons.

The error is not trapped by C# by any of the try - catch methods

Following screens are a sample that follow after the crash

enter image description here

The main application screen looks like this

enter image description here

Has anybody faced such a situation where the app crashes after a fixed run length.

Please suggest a diagnostic tool or a method to trap such errors.

Thanks for the replies

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T02:40:08+00:00Added an answer on June 8, 2026 at 2:40 am

    Try adding this into your service in the main void

    AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
    
            public static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
            {
                // do your logging here, write to a file, or send an email
            }
    

    and

    service.ExceptionThrown += service_ExceptionThrown;
    
            private static void service_ExceptionThrown(object sender, ExceptionThrownEventArgs e)
            {
                // do your logging here, write to a file, or send an email
            }
    

    and if you want to debug your service in visual studio then just add -d by start up option in the Command line arguments

    Command line argumnets

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are developing a multilingual Winforms application using visual studio 2008. I am trying
I’m developing an application, which allows to record video from web camera. (using visual
I'm developing an application using MS Visual C# 2008 Express that uses the ClickOnce
We are developing a REST based application using Visual Studio 2010, using asp.net web
We are currently building the framework for developing a C# .net application using visual
i am developing window application using visual studio and c# i want to insert
While developing and ASP.NET application in C# or VB using Visual Studio 2005/2008/2010 (Not
I'm developing desktop Qt 4.7.1 application for Windows 7 using Visual Studio 2010 and
I'm about to start developing a small Windows application using Microsoft Visual C# 2008
I am developing an MVC3 application using Visual Studio 2010. I have an aspx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.