aaronnaidu's blog

By aaronnaidu, 5 years ago, In English

67469642 Could someone please explain to me which part of my code is causing the "heap use after free" error shown in the diagnostics section? (I understand my code is in no way a solution to the problem it was submitted for, I would just like to know what is causing the error before I try to convert what I have into a solution)

Thank you!

  • Vote: I like it
  • -9
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it +10 Vote: I do not like it

You have on the error message line numbers for when you are using it, when it was allocated and when it was freed. Kinda possible to see what's going on?

»
5 years ago, # |
  Vote: I like it -8 Vote: I do not like it

Between iterations you are incrementing iterator that you already deleted from the set