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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:34:18+00:00 2026-05-20T07:34:18+00:00

When an EXE raised an exception message like access violation at address XXXXXXXX…, the

  • 0

When an EXE raised an exception message like “access violation at address XXXXXXXX…”, the address XXXXXXXX is a hex value, and we can get the source code line number that caused the exception, by looking at the map file. Details below (by madshi at EE):

you need to substract the image base,
which is most probably $400000.
Furthermore you need to substract the
“base of code” address, which is
stored in the image nt headers of each
module (exe/dll). It’s usually $1000.
You can check which value it has by
using the freeware tool “PEProwse
Pro”. It’s the field “Base Of Code” in
the “Details” of the “Optional
Header”. You’ll also find the image
base address there.

My question is: How to get the source line number for a DLL? Does the same calculation apply? Thanks!

Note 1: the map file is generated by Delphi and I’m not sure if this matters.

Note 2: I’ve been using JCL DEBUG but it couldn’t catch the exception which seems occurred at the startup of the DLL (an Office add-in, actually).

  • 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-20T07:34:19+00:00Added an answer on May 20, 2026 at 7:34 am

    Same calculations apply, with the following note: instead of image base address of EXE you’ll need to take actual address where DLL had been loaded. Base of code for a DLL should taken in the same manner as for EXE (stored in PE’s IMAGE_OPTIONAL_HEADER).

    Btw, EXE and DLL are actually the same thing from the point of view of PE format.

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

Sidebar

Related Questions

Project CompetitionServer.exe raised exception class ESQLiteException with message 'Error executing SQL. Error [1]: SQL
I'd like my .exe to have access to a resource string with my svn
I get an error while saving a string. the error is: prject prKlanten.exe raised
In cmd.exe, I can execute the command copy c:\hello.txt c:\hello2.txt and it worked fine.
I Tried the following code , no exception is raised but the opendhcpserver program
Native exe! that means my program can run easily without any requirement? even if
Simple exe for a tray icon, that works fine independently I call it using
wsdl.exe , appears to be the default tool for .Net to generate proxy class
My exe processes text documents and I want to be able to right click
I have a .exe and many plug-in .dll modules that the .exe loads. (I

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.