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 3871306
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:48:40+00:00 2026-05-19T21:48:40+00:00

My service sometimes fails. It’s not bad, and on windows 7 and windows server

  • 0

My service sometimes fails. It’s not bad, and on windows 7 and windows server 2003, service restarts. But on windows XP I see message “WindowsService.exe has encountered a problem and needs to close. We are sorry for the inconvenience.” I added my service to the list of applications that are to be excluded from error reporting. It did not help – message showing without “Send report” and “Don’t send”.
The main problem in the fact that there is not unhandled exeption in my service. There is error in one dll (with unmanaged cod) and I can’t correct it.
How can I set my service so, that is work without this massages?
Added:
All my code in a try / catch block. Event log is “Faulting application WindowsService.exe, version 1.0.0.0, faulting module .dll, fault address 0x00010616.”

  • 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-19T21:48:41+00:00Added an answer on May 19, 2026 at 9:48 pm

    Trying to catch this exception is a Bad Idea, an access violation is quite a nasty one. Subscribe to the AppDomain.CurrentDomain.UnhandledException event in your Main() method. In your event handler call Environment.Exit(1). This is not guaranteed to run, the unmanaged code might have started its own thread. The garlic cross you need for that one is SetUnhandledExceptionFilter(), you should write this in C++/CLI.

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

Sidebar

Related Questions

I have a windows service application, running under WinXPe, which sometimes fails with an
I'm getting a JSON string from a WCF service but I'm getting issues sometimes
Right now i have some sort of services application on windows server 2003 for
I got a report that my service sometimes not responding. I found out that
I have a windows service that is, intermittently, throwing an exception that sometimes kills
I created some alarms in my service which service sometimes restarts. I would like
I have a .net service that starts when windows starts, and sometimes ( totally
We have a .Net 3.5 Workflow hosted as a service that sometimes stops unexpectedly.
My application have a service and an activity. Sometimes the service will send a
Sometimes adding a WCF Service Reference generates an empty reference.cs and I cannot reference

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.