Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Source of Debug Error of Heap block modified
Forum Updated to NodeBB v4.3 + New Features

Source of Debug Error of Heap block modified

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 2.7k 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.
  • K Offline
    K Offline
    Kofr
    wrote on 31 Mar 2016, 07:17 last edited by
    #1

    Hi,
    when I debugging I get an error

    HEAP: Free Heap block 008C3608 modified at 008C368C after it was freed
    

    in Aplication Output window.
    How to find source of this?
    it actually shows me a disassemble window, but it does not tell me anything. And I really do not get where in app I use memory after deletion.
    *this message does not appear when app works in Release.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 31 Mar 2016, 09:30 last edited by
      #2

      Try running Valgrind analysis in Qt Creator - I have found it often produces better output than standard debugger, showing exactly where and issue occurs

      (Z(:^

      K 1 Reply Last reply 31 Mar 2016, 09:38
      1
      • S sierdzio
        31 Mar 2016, 09:30

        Try running Valgrind analysis in Qt Creator - I have found it often produces better output than standard debugger, showing exactly where and issue occurs

        K Offline
        K Offline
        Kofr
        wrote on 31 Mar 2016, 09:38 last edited by
        #3

        @sierdzio thank you.
        However I think this confusion happened thro I used delete QNetworkAccessManager or QNetworkReply which somehow has sophisticated afterwork.
        I just used deleteLater() and everything comes ok

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 31 Mar 2016, 10:02 last edited by
          #4

          Yes, deleteLater() is a good thing to use, especially in networking code.

          (Z(:^

          1 Reply Last reply
          0

          1/4

          31 Mar 2016, 07:17

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved