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. Memory leak problem

Memory leak problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++sysadmindata-structuresperformance
4 Posts 4 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.
  • D Offline
    D Offline
    D Manivelan
    wrote on last edited by
    #1

    Hi friends, Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that

    _CRTIMP void _cdecl _CrtDbgBreak(
    void
    )
    {
    DebugBreak();
    }

    call stack not shows any previous function. I couldn't find exact location. Please help me. Thanks

    Richard Andrew x64R T E 3 Replies Last reply
    0
    • D D Manivelan

      Hi friends, Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that

      _CRTIMP void _cdecl _CrtDbgBreak(
      void
      )
      {
      DebugBreak();
      }

      call stack not shows any previous function. I couldn't find exact location. Please help me. Thanks

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      Such an error is usually caused by a buffer overrun on some stack-based variable. The reason it doesn't show a call stack is that the stack has been corrupted due to the program writing to locations it shouldn't be writing to. The way I would track this down is to look at all the locations where you use stack-based memory buffers such as strings, and examine the code for what could cause an overrun.

      The difficult we do right away... ...the impossible takes slightly longer.

      1 Reply Last reply
      0
      • D D Manivelan

        Hi friends, Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that

        _CRTIMP void _cdecl _CrtDbgBreak(
        void
        )
        {
        DebugBreak();
        }

        call stack not shows any previous function. I couldn't find exact location. Please help me. Thanks

        T Offline
        T Offline
        tgsb
        wrote on last edited by
        #3

        Memory leaking problem is quite common....I suggest you to use some good C writer books to handle these problems.

        1 Reply Last reply
        0
        • D D Manivelan

          Hi friends, Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that

          _CRTIMP void _cdecl _CrtDbgBreak(
          void
          )
          {
          DebugBreak();
          }

          call stack not shows any previous function. I couldn't find exact location. Please help me. Thanks

          E Offline
          E Offline
          Eugen Podsypalnikov
          wrote on last edited by
          #4

          Before you are starting the debug session from VS: - Ctrl+Alt+E (Exceptions Dialog from the Debug Menu) - Check the all boxes there in - F5 (Start) The Debugger will stop exactly at the "bugged" line :)

          They sought it with thimbles, they sought it with care; They pursued it with forks and hope; They threatened its life with a railway-share; They charmed it with smiles and soap. :)

          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