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. Program Data Limits

Program Data Limits

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiodata-structureshelp
4 Posts 3 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.
  • G Offline
    G Offline
    Grahamfff
    wrote on last edited by
    #1

    Can anyone advise on this problem on Visual Studio 2005 MFC application? When I add any new variables; e.g. say a structured array of some 256 elements my program crashes with an exception where the code was OK in all previous versions. I am assuming that I have reached some limits on heap or stacks etc. and think that addresses/pointers are being overwritten. Can some suggest and options to set to increase the programs resources. Note the program reads in some large files and uses the CStringArray for lots o string processing. Many thanks, Graham.

    grahamfff

    R 1 Reply Last reply
    0
    • G Grahamfff

      Can anyone advise on this problem on Visual Studio 2005 MFC application? When I add any new variables; e.g. say a structured array of some 256 elements my program crashes with an exception where the code was OK in all previous versions. I am assuming that I have reached some limits on heap or stacks etc. and think that addresses/pointers are being overwritten. Can some suggest and options to set to increase the programs resources. Note the program reads in some large files and uses the CStringArray for lots o string processing. Many thanks, Graham.

      grahamfff

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      What precisely was the exception? Any relevant code that you can show us?

      “Follow your bliss.” – Joseph Campbell

      G 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        What precisely was the exception? Any relevant code that you can show us?

        “Follow your bliss.” – Joseph Campbell

        G Offline
        G Offline
        Grahamfff
        wrote on last edited by
        #3

        I just tried to invoke the crash and the code section it occured in, but the problem has gone away. I did a work around when I encountered this crash and just wanted to try and sort it out now. I just wondered if I used a #define items inside the structure I has defining. Anyway should I worry about the data segment of the program as I am processing very large text files as already I needed to upgrade counters from short to int. Regards, Graham.

        grahamfff

        R 1 Reply Last reply
        0
        • G Grahamfff

          I just tried to invoke the crash and the code section it occured in, but the problem has gone away. I did a work around when I encountered this crash and just wanted to try and sort it out now. I just wondered if I used a #define items inside the structure I has defining. Anyway should I worry about the data segment of the program as I am processing very large text files as already I needed to upgrade counters from short to int. Regards, Graham.

          grahamfff

          R Offline
          R Offline
          Rolf Kristensen
          wrote on last edited by
          #4

          My guess is that by adding an extra entry then you changed the alignment of memory, and exposed an old bug where it accessed invalid memory. Usually these bugs are hidden again by modifying the application again so the alignemtn of memory changes again.

          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