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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:07:03+00:00 2026-05-20T16:07:03+00:00

I was wondering about exception 0xc0000005 and what it acctually encompasses. I.e. I take

  • 0

I was wondering about exception 0xc0000005 and what it acctually encompasses.

I.e. I take it this occurs if an application tries to access freed memory/memory belonging to another process.
But what about, for example, an address mapped for hardware? Or an address outside the valid range? Do attempted accesses to these fault with the same code or do they have their own?
Does this include failed reads to valid addresses owned by the process?

Essentially I want to know when an application fails with this exception, what may have gone wrong; is this a narrow fault that could only have come from the apps. code or am I looking at anything up and including hardware problems?

(I know there must be an MSDN page on this but searching Google or MSDN brings up the expected 100 pages of troubleshooting random applications ;))

Thanks!

  • 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-20T16:07:04+00:00Added an answer on May 20, 2026 at 4:07 pm

    You need to read the processor manual to drill this down. It is triggered by a “trap”, best described as an exception in the processor. A trap interrupts code execution and lets an operating system “catch” handler deal with the fault. A very common benign one is a page fault, raised when the processor tries to read data from RAM that isn’t mapped yet. That’s how virtual memory is implemented.

    An AccessViolation belongs to a group of traps that are hard faults that the operating system doesn’t know how to handle. It is called “General Protection Fault” in the processor manual. It’s a bit of a grab-bag, there are lots of ways to trigger a GPF. By far the most common one is trying to read memory that isn’t mapped, usually caused by heap memory corruption. Followed by trying to execute a machine code instruction that isn’t valid or can only be executed by privileged code, usually caused by stack memory corruption.

    These traps are as nasty as they come, the processor simply cannot continue executing the program. The operating system certainly doesn’t know how to handle it, it raises an AccessViolation exception to give the program a shot at jerking the processor back to known-good code. Possible by using the __try/__except keywords in your code. Not a great idea btw, other than for custom error reporting, you have no real idea how the state of your program got mutated before it died and thus no way to restore it back.

    Without such an SEH handler, this ends up in a backstop that Windows provides. You can provide your own with SetUnhandledExceptionFilter(), useful to customize the crash report. The system-provided one puts an end to it by triggering WER, the Windows Error Reporting component. Which ultimately terminates the process.

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

Sidebar

Related Questions

I'm wondering about MP3 decoding/encoding, and I was hoping to pull this off in
I was always wondering about this seemingly utopic world of open source. Assuming the
I'm wondering about the cost of using a try/exception to handle nulls compared to
I'm wondering if I can put a try catch about $application->bootstrap()->run(); that will catch
I'm wondering about instances when it makes sent to use #define and #if statements.
I've been wondering about the performance improvements touted in Java SE 6 - is
I'm wondering about the practical use of #undef in C. I'm working through K&R,
I'm just wondering about large projects - say an airlines reservation system, how many
I've been wondering about how hard it would be to write some Python code
I was wondering about the best practices for indicating invalid argument combinations in Python.

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.