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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:45:30+00:00 2026-05-10T22:45:30+00:00

I have some code in MS VC++ 6.0 that I am debugging. For some

  • 0

I have some code in MS VC++ 6.0 that I am debugging. For some reason, at this certain point where I am trying to delete some dynamically allocated memory, it breaks and I get a pop up message box saying ‘User Breakpoint called from code at blah blah’.. then the Disassembly window pops up and I see

*memory address* int      3 

The odd thing is, there is NOWHERE in the code that I am calling an assembly instruction like this (I think asm int 3 is a hardware break command for x86?)..

what could be causing this?

EDIT: ANSWER: My code was ‘walking off the end’ of an array, but only in the locations marked by Visual Studio debug with 0xFDFDFDFD, which is called a NoMan’sLand fence.. I think its also called an Off-by-one error.. This array was unrelated to the point where i was freeing the memory when the error was occuring. Which made it harder to spot.. 🙁

  • 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. 2026-05-10T22:45:31+00:00Added an answer on May 10, 2026 at 10:45 pm

    You’re probably hitting code in the debug heap routines that have found heap corruption.

    What does the call stack look like when you’ve hit the Int 3?

    Edit: Based on the stack trace in your comments, the routine _CrtIsValidHeapPointer() is saying that the pointer being freed is bad. Here’s the snippet of code from MSVC’s DBGHEAP.C source:

        /*      * If this ASSERT fails, a bad pointer has been passed in. It may be      * totally bogus, or it may have been allocated from another heap.      * The pointer MUST come from the 'local' heap.      */     _ASSERTE(_CrtIsValidHeapPointer(pUserData)); 

    pUserData would be the value of the pointer you’re deleteing.

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

Sidebar

Ask A Question

Stats

  • Questions 70k
  • Answers 70k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer I've been down this road before and unfortunately you'll need… May 11, 2026 at 12:58 pm
  • added an answer I think you should use FireBug to find out what… May 11, 2026 at 12:58 pm
  • added an answer Ctrl-C at the console generates an SDL_QUIT event. You can… May 11, 2026 at 12:58 pm

Related Questions

I have created a report in MS Access report and write some VBA code
I have some code in a javascript file that needs to send queries back
I have some code in an IAuthorizationFilter which redirects the user to a login
I have some code in C# which has a com wrapper. This com wrapper
Lets say I have some raster data I want to write to a file..
Can anyone explain how compilation works? I can't seem to figure out how compilation
I've been messing around with the free Digital Mars Compiler at work (naughty I
Note The question below was asked in 2008 about some code from 2003. As

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.