Menu

#66 the most annoying bug - not solved

v1.0_(example)
closed
nobody
None
5
2024-04-03
2016-10-29
No

Hi Jim,

I spent a lot of hours with next bug and I did not figured out...
Please save my mental health! :)

The problem:
Copy this program http://basic256.blogspot.ro/2012/11/isometric-wave.html
Add at the end this extra line: print msec
Run this program. Results on my machine:
1) first run give me 25000 ms (is important to be first run after compile)
2) next runs give me 28000 ms

I hunt this issue and I find that if I remove the line delete(convert); from Interpreter::cleanup() everything is ok and the result is always 25000 ms.
Ok... put back this line.

To make the story short, if I comment the line below, everything is ok, but is a memory leak!

Convert::~Convert() {
    //delete(isnumeric);
}

It does not make any sense!
I am using QT5.7.

Plese help.

Respectfully,
Florin Oprea

Discussion

  • Jim Reneau

    Jim Reneau - 2024-04-03

    Copying your code and adding the "print msec" statement on my PC with 2.0.99.7 with qt 5.15.10 gave me 16886, 16907, and 16873 for three runs from a fresh load of the program. I believe this has been fixed.

     
  • Jim Reneau

    Jim Reneau - 2024-04-03
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.