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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:41:57+00:00 2026-05-26T14:41:57+00:00

If I catch an access violation with SEH, how can I get address of

  • 0

If I catch an access violation with SEH, how can I get address of violation ? GetExceptionInformation gives me LPEXCEPTION_POINTERS that contains

  • ExceptionRecord – A pointer to an EXCEPTION_RECORD structure that
    contains a machine-independent description of the exception.
  • ContextRecord – A pointer to a CONTEXT structure that contains a
    processor-specific description of the state of the processor at the time of the exception.

How can i get this info this without writing a dump?

  • 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-26T14:41:57+00:00Added an answer on May 26, 2026 at 2:41 pm

    The memory address as well as type of operation is contained in ExceptionInformation field inside ExceptionRecord structur. From MSDN:

    ExceptionInformation
    An array of additional arguments that describe the exception. The RaiseException function can specify this array of arguments. For most exception codes, the array elements are undefined. The following table describes the exception codes whose array elements are defined.

    Exception code Meaning
    EXCEPTION_ACCESS_VIOLATION
    The first element of the array contains a read-write flag that indicates the type of operation that caused the access violation. If this value is zero, the thread attempted to read the inaccessible data. If this value is 1, the thread attempted to write to an inaccessible address. If this value is 8, the thread causes a user-mode data execution prevention (DEP) violation.

    The second array element specifies the virtual address of the inaccessible data.

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

Sidebar

Related Questions

Example int *ptr; *ptr = 1000; can I catch memory access violation exception using
how can i use htaccess to catch a friendly url like /error/access/notallowed and break
When an EXE raised an exception message like access violation at address XXXXXXXX..., the
I can't seem to catch the access token as invalid even when i logged
I want to catch clicks that occur anywhere in an iframe. I can not
I need to catch Integer divide by zero and access violation reading or writing
I have several database access methods that are wrapped in a try/catch block: function
I would like to catch the click/change selection event on a listbox that has
I keep hearing that catch (Exception ex) Is bad practise, however, I often use
When I attempt to access this specific pointer, the application crashes and shows a

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.