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. Debug Assertion Failed dbgdel.cpp Line 45

Debug Assertion Failed dbgdel.cpp Line 45

Scheduled Pinned Locked Moved C / C++ / MFC
c++linuxdebuggingxmlhelp
7 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.
  • N Offline
    N Offline
    nahitan
    wrote on last edited by
    #1

    Hi there, I have an application interfacing two other application one windows base and another one Linux base and my application receives messages from the Linux base app. and sends that to the windows base one and vise versa, the messages from Linux base app. in ASCII hex and I change it to XML string and send it to the windows base app. and also get in XML string from that and convert it to HEX for the Linux base app. The problem is that after a while I get the Debug Assertion Failed dbgdel.cpp Line 42 Message and my application crashes. Any idea would be appreciated. Thanks

    R M 2 Replies Last reply
    0
    • N nahitan

      Hi there, I have an application interfacing two other application one windows base and another one Linux base and my application receives messages from the Linux base app. and sends that to the windows base one and vise versa, the messages from Linux base app. in ASCII hex and I change it to XML string and send it to the windows base app. and also get in XML string from that and convert it to HEX for the Linux base app. The problem is that after a while I get the Debug Assertion Failed dbgdel.cpp Line 42 Message and my application crashes. Any idea would be appreciated. Thanks

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      That's because you used ++ instead of + in line 21, making the counter in line 42 overflow. Insert a comment line on line 41, this should fix it, or bring the problem to line 43.

      ~RaGE();

      I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus

      M N 2 Replies Last reply
      0
      • R Rage

        That's because you used ++ instead of + in line 21, making the counter in line 42 overflow. Insert a comment line on line 41, this should fix it, or bring the problem to line 43.

        ~RaGE();

        I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        :laugh:

        1 Reply Last reply
        0
        • R Rage

          That's because you used ++ instead of + in line 21, making the counter in line 42 overflow. Insert a comment line on line 41, this should fix it, or bring the problem to line 43.

          ~RaGE();

          I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus

          N Offline
          N Offline
          nahitan
          wrote on last edited by
          #4

          Thanks for the tip but I am not sure what you mean by making overflow in line 42 ( what class?) this the first time I see dbgdel.cpp unless it is a Windows class (Library)(I do not have such class name in my app.). Thanks,

          1 Reply Last reply
          0
          • N nahitan

            Hi there, I have an application interfacing two other application one windows base and another one Linux base and my application receives messages from the Linux base app. and sends that to the windows base one and vise versa, the messages from Linux base app. in ASCII hex and I change it to XML string and send it to the windows base app. and also get in XML string from that and convert it to HEX for the Linux base app. The problem is that after a while I get the Debug Assertion Failed dbgdel.cpp Line 42 Message and my application crashes. Any idea would be appreciated. Thanks

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            nahitan wrote:

            after a while I get the Debug Assertion Failed dbgdel.cpp Line 42

            Assertions in delete are probably from your code trashing memory it doesn't own. You'll need to debug your code and find all the places you are overunning the end of allocated memory. If that doesn't work, blame Linux.

            D N 2 Replies Last reply
            0
            • M Mark Salsbery

              nahitan wrote:

              after a while I get the Debug Assertion Failed dbgdel.cpp Line 42

              Assertions in delete are probably from your code trashing memory it doesn't own. You'll need to debug your code and find all the places you are overunning the end of allocated memory. If that doesn't work, blame Linux.

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Mark Salsbery wrote:

              ...blame Linux.

              Why not just save time and do that first? ;)


              "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

              "Judge not by the eye but by the heart." - Native American Proverb

              1 Reply Last reply
              0
              • M Mark Salsbery

                nahitan wrote:

                after a while I get the Debug Assertion Failed dbgdel.cpp Line 42

                Assertions in delete are probably from your code trashing memory it doesn't own. You'll need to debug your code and find all the places you are overunning the end of allocated memory. If that doesn't work, blame Linux.

                N Offline
                N Offline
                nahitan
                wrote on last edited by
                #7

                Thanks :)

                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