samedi 17 octobre 2020

What kind of pointers you should use to avoid variable "tracking size limit exceeded error"

In a qt project that I am currently working on, I found a memory leak while doing unit testing, and as usual, it had something to do with some untouched feature... The root cause of this leak was that, this feature was passing pointers to many classes and they mismanaged some pointers created between methods. I tried to solve this leak by changing all those pointers to Qsharedpointers, long story short, it worked... However when I compile this project now I have the "variable tracking size limit exceeded" warning. So I was running out of ideas, maybe I could change those Qsharedpointer for a shared_ptr, but I don't know if that may solve the problem. So do you know what is the difference on size of a Qsharedpointer and a shared_ptr?

Aucun commentaire:

Enregistrer un commentaire