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. Invalid Cache depth

Invalid Cache depth

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiodebuggingquestionannouncement
4 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.
  • B Offline
    B Offline
    BadJerry
    wrote on last edited by
    #1

    I have an application in C++ (VC6.0 SP5 Win 2K) which runs fine in Debug and crashes in Release. In the output debug window, when running the app in the IDE, I get the following message "Invalid Cache depth". Anybody has a clue? Thanks to whoever has!

    A B 2 Replies Last reply
    0
    • B BadJerry

      I have an application in C++ (VC6.0 SP5 Win 2K) which runs fine in Debug and crashes in Release. In the output debug window, when running the app in the IDE, I get the following message "Invalid Cache depth". Anybody has a clue? Thanks to whoever has!

      A Offline
      A Offline
      Adam Gritt
      wrote on last edited by
      #2

      I don't know about the error, but you might want to take a look at XCrashReport - Exception Handling and Crash Reporting by Hans Dietrich. It covers debugging release mode applications.

      B 1 Reply Last reply
      0
      • A Adam Gritt

        I don't know about the error, but you might want to take a look at XCrashReport - Exception Handling and Crash Reporting by Hans Dietrich. It covers debugging release mode applications.

        B Offline
        B Offline
        BadJerry
        wrote on last edited by
        #3

        I did read his serie of articles. Unfortunately the bug seems to appear in the MFC dll, so nothing I can do there to trace some code. And the stack does not include any of my functions. There is also a very good article called Surving the release version, but I still have not found anything useful there either. Thanks!

        1 Reply Last reply
        0
        • B BadJerry

          I have an application in C++ (VC6.0 SP5 Win 2K) which runs fine in Debug and crashes in Release. In the output debug window, when running the app in the IDE, I get the following message "Invalid Cache depth". Anybody has a clue? Thanks to whoever has!

          B Offline
          B Offline
          BadJerry
          wrote on last edited by
          #4

          Found it! I was simply using the index -1 in a std::vector... not a very good way to make your program work (and it does screw up your stack :) )! I wish the STL had some ASSERTs like there are in MFC though!

          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