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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:07:06+00:00 2026-05-22T13:07:06+00:00

I’m working on a legacy VB6 application. In a certain use case, the application

  • 0

I’m working on a legacy VB6 application. In a certain use case, the application fails with something which looks like a null pointer exception:

The instruction at “0x2982e900”
referenced memory at “0x00000156”. The
memory could not be “read”.

I have tried to do some source code debugging, but I can’t find the source code line which throws the exception. Is there any way to find the source code line which corresponds to an assembly instruction address such as 0x2982e900? (I have tried Reflector, but it only seems to support .NET).

Update:

When I debug the application with the VB6 IDE debugger, I don’t get any breaks in the VB6 source. Instead, the windows error message mentioned above pops up, giving me the option to enable the Visual Studio 2010 debugger. If I do this, the VS2010 debugger displays assembly code like this:

[…]
2982E8FA push eax
2982E8FB call 29832E9B
2982E900 mov ax,word ptr
[eax+156h]
[…]

The application uses some .ocx files from a company called Infragistics to implement the GUI. According to the CrashFinder utility, the assembly code shown is from the file IGTOOLBARS40.OCX.

  • 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-22T13:07:07+00:00Added an answer on May 22, 2026 at 1:07 pm

    Like managed .Net code, VB6 code is prevented from encountering invalid pointer exceptions (because VB6 does not include pointers).

    The problem is most likely caused by either

    • A bug in a DLL or OCX (perhaps a third-party one?)
    • A mistake in calling the Windows API. Most commonly through a Declare statement, sometimes through a type-library (hard-core!).

    The first step is to identify which line of VB6 code triggers the crash.

    Either:

    • Step through the IDE until the crash happens.
    • Or decode the 0x2982e900 address into a VB6 source line number with CrashFinder. You do always build your EXE with a PDB file that contains debug symbols, right?

      To tell the VB6 IDE to build a project with debug info, you need to change one of the default compile options. From the File menu, select “Build Project1.exe”. Click the “Options” button in the save file dialog that appears, and a properties sheet will open. Switch to the “Compile” tab, and check the box labeled “Create Symbolic Debug Info”.

         Ensure that "Create Symbolic Debug Info" is checked in your build settings

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

Sidebar

Related Questions

No related questions found

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.