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

  • SEARCH
  • Home
  • 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 476891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:32:09+00:00 2026-05-13T00:32:09+00:00

i have to implement a Info Terminal. I choose dot.net and the terminal is

  • 0

i have to implement a Info Terminal. I choose dot.net and the terminal is only a touchpad.
So this System running 7 days 24 hours.

So i call a Webservice, display Data, show Website stuff. Many things can going wrong.

Have you some recommendations for this scenario?
Every function in an try catch? AppDomain.CurrentDomain.UnhandledException event?

Thanks Andreas

  • 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-05-13T00:32:09+00:00Added an answer on May 13, 2026 at 12:32 am

    Basically, you should handle any error as soon as it is possible – so if you’re calling webservice wrap all the calls in a try/catch block and handle the error there – you can, for example, log the exact error, aggregate many webservice-related exception in more generic, DataSourceFaultException (name is only for example), which will be then received by UI and UI will be able to easily determine, that it can’t display requested info because communication failed, and choose to retry, notify user or do anything else.

    However – with long running application there are many more errors you’ll have to deal with. Many of them are not easy to predict, as they’re not necessarily related to any specific call – you can run out of memory, a recursion might cause stack overflow, a system timer can reach it’s max value and start from the beginning etc.

    You shouldn’t handle those errors in every method, as it will only hurt code readibility and will be error prone. Those errors are best handled by UnhandledException event. However, you must remember, that when the exception reaches UnhandledException event, you cannot assume anything about state of your application – the error might have corrupted some (or even all) of internal state. So when such condition occurs, it’s best to try to create an error log and gracefuly restart the application (not necessarily whole application – maybe it will be possible to reinitialize application’s state – if so, that’s a valid option too. However, you must be aware that you won’t be able to recover from some errors and handle such situation anyway).

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

Sidebar

Related Questions

Based on info in this thread: Implement own state - INACTIVE_STATE? I have built
I have found some info on the subject ( like this link) , but
I have been struggling for 4 days trying to implement a hash algorithm in
We use apns-php to implement push notification service and have faced this problem recently:
I have implemented jquery on the site (click on the plus sign) http://pligg.marsgibson.info Issue
I have implement the exact same concept for my project- http://blog.perplexedlabs.com/2009/05/04/php-jquery-ajax-javascript-long-polling/ My question is,
I have implement a scenario which involves two way communication between child and parent
clients :has_many :project,:roles I have implement but its not a good implementation..
I have to implement a sparse matrix (a matrix that has predominantly zeroes, so
I have to implement an Image Gallery for the iPhone iOS. Pictures are loaded

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.