Detekujte úniky paměti pomocí nástroje Heob
Ve Windows použijte nástroj Heob heap observer k detekci přetečení bufferu a úniků paměti.
Chcete-li spustit Heob na aktuálně otevřeném projektu:
- Vyberte možnost „ Analyze “ > „ Heob “.

- Vyberte profil nastavení Heob, který chcete použít, nebo vyberte možnost „ New “ (Nastavení > Heob) a vytvořte nový profil.
- V poli „ Heob path “ zadejte cestu ke spustitelnému souboru Heob.
- Zadejte nastavení pro spuštění kontrol.
- Vyberte možnost „ OK “ (Vytvořit nový profil) a spusťte Heob.
Qt Creator spustí aplikaci a poté spustí Heob v terminálu.

Heob vyvolá porušení přístupu při přetečení vyrovnávací paměti a zaznamená stopy zásobníku pro problematickou instrukci a alokaci vyrovnávací paměti. Výsledky můžete vidět v zobrazení „ Memcheck “ poté, co se Heob normálně ukončí.

Viz také Jak na to: Analýza, Analyzátory, Heob a Analýza kódu.
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.