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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:01:11+00:00 2026-05-28T13:01:11+00:00

I have hit a bit of a wall with some debugging. I have been

  • 0

I have hit a bit of a wall with some debugging. I have been getting two Access violation errors in completely unrelated parts of my program, neither of them I really understand. One of them occurs when I declare a new variable, in this case,

std::map<float, float> fMap;

I have checked that the name is not used anywhere else in the code, I’m not sure how that would be relevant but it’s all I can think of. I think I have only ever managed to produce one of these when I do something stupid with a pointer. Does anyone have any ideas of what could be causing this? The project is being compiled with Borland 6.

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-28T13:01:12+00:00Added an answer on May 28, 2026 at 1:01 pm

    The error has nothing to do with the declaration at hand: most likely, it is a delayed consequence of error that you made earlier. Some of the code that ran prior to hitting the map declaration has corrupted the heap in one way or another. Things that could potentially lead to a “delayed” crash are

    • Releasing memory that has not been allocated to you
    • Releasing memory several times
    • Writing to outside the memory region that has been allocated to you

    These errors may trigger a crash immediately, but they often do not: instead, a corrupted piece of some sensitive heap structure waits to be allocated to trigger a crash. When std::map allocates memory for its internals, it triggers the crash by requesting memory from a corrupted heap.

    The best way to find out is to use a memory profiling tool. It should pinpoint the error to you at the time it happens, letting you address the problem instead of chasing its consequence.

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

Sidebar

Related Questions

I'm just barely getting into NodeJS a bit and have hit a snag trying
I have been experimenting with WP7 apps today and have hit a bit of
I'm working through Practical Web 2.0 Appications currently and have hit a bit of
I'm onto problem 245 now but have hit some problems. I've done some work
I'm trying to do a cross domain POST request and have hit a wall
I am working on a jQuery-based todo list interface, and have hit a bit
I am just starting on R - and have hit a bit of a
I have a bit of a question that has been bothering me for a
I'm using ajax for the first time and have hit a bit of a
I am working on a project, and I have hit a brick wall. My

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.