Odkrivanje uhajanja pomnilnika s programom Heob

V sistemu Windows uporabite opazovalnik kupov Heob za odkrivanje prepolnitev pomnilnika in uhajanja pomnilnika.

Za zagon Heoba na trenutno odprtem projektu:

  1. Izberite » Analyze « > » Heob «.

    Nastavitve Heob

  2. Izberite profil nastavitev Heob, ki ga želite uporabiti, ali izberite » New «, da ustvarite nov profil.
  3. V polju » Heob path « vnesite pot do izvedljive datoteke Heob.
  4. Določite nastavitve za izvajanje pregledov.
  5. Izberite » OK «, da zaženete Heob.

Qt Creator zažene aplikacijo, nato pa v terminalu zažene Heob.

Heob, ki teče v terminalu

Heob sproži kršitev dostopa ob prepolnitvi pomnilnika in zabeleži sled stoka za sporno navodilo ter dodelitev pomnilnika. Rezultate si lahko ogledate v pogledu » Memcheck «, ko se Heob normalno zaključi.

Rezultati iz Heoba v pogledu Memcheck

Glejte tudi Kako: Analiza, Analizatorji, Heob in Analiza kode.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.