Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. dbgheap line 1011

dbgheap line 1011

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingperformancequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vilmer
    wrote on last edited by
    #1

    I have a problem runnin' my application. I used lots of char* 'cause I needed to scan ASCII files. Scanning one file is ok, but with more files, exiting the application generates a messages error "Instruction xxxx pointed to memory yyyy. Memory couldn't be 'read' (or 'written')" Debugging the application, the problem is located in dbgheap.h, line 1011. Changing the type of application, the problem shifts to sbheap.h. I've read about changing debug settings (using RTTI and so on), but the error still remain. Any suggestion? :confused:

    N 1 Reply Last reply
    0
    • V vilmer

      I have a problem runnin' my application. I used lots of char* 'cause I needed to scan ASCII files. Scanning one file is ok, but with more files, exiting the application generates a messages error "Instruction xxxx pointed to memory yyyy. Memory couldn't be 'read' (or 'written')" Debugging the application, the problem is located in dbgheap.h, line 1011. Changing the type of application, the problem shifts to sbheap.h. I've read about changing debug settings (using RTTI and so on), but the error still remain. Any suggestion? :confused:

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      You are most likely writing past the end of an allocating heap block. You need to work through your code and try and track the cause down. There are various CRT Heap Debugging functions that will help with this. Google "crt debug heap" for help on this. Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups