Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Debugger
»
Memory leaks
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Datatype of Fields in sql...
by
Zvoni
[
Today
at 08:53:09 am]
Is it possible to create ...
by
CM630
[
Today
at 07:32:46 am]
StrMath.pas a String Numb...
by
JgQDev
[
Today
at 07:30:58 am]
We are starting to use La...
by
dbannon
[
Today
at 06:25:04 am]
Fast Canvas Library V1.05...
by
backprop
[
Today
at 03:19:31 am]
TurboBird for FireBird 5
by
maurog
[
Today
at 02:28:10 am]
Status of FPC 3.4.0 or FP...
by
Graeme
[
Today
at 01:53:52 am]
TurboBird IBX
by
maurog
[
Today
at 01:53:39 am]
lazarus structure
by
crownfield
[
Today
at 12:28:23 am]
Delphi Magazine issues 1-...
by
simone
[February 16, 2026, 11:49:11 pm]
LazSerial not found
by
CM630
[February 16, 2026, 10:00:08 pm]
Duplicated icon in the Wi...
by
n7800
[February 16, 2026, 09:31:22 pm]
"PPU file isn't found by ...
by
Martin_fr
[February 16, 2026, 09:29:59 pm]
Reporting a Bug? in Strin...
by
Bart
[February 16, 2026, 06:47:13 pm]
[ANN] fpGUI Toolkit v2.0....
by
cdbc
[February 16, 2026, 06:45:05 pm]
Free Pascal for a small e...
by
devEric69
[February 16, 2026, 06:13:48 pm]
Onguard Win64
by
AgriMensor
[February 16, 2026, 05:55:41 pm]
Duplicate identifier erro...
by
Martin_fr
[February 16, 2026, 04:03:10 pm]
Frustrating Error When us...
by
TYDQ
[February 16, 2026, 02:50:02 pm]
[AGGPas] Difference betwe...
by
wp
[February 16, 2026, 02:15:23 pm]
[AGGPas] Usage of scale m...
by
Roland57
[February 16, 2026, 11:33:08 am]
makefiles
by
valdir.marcos
[February 16, 2026, 11:24:17 am]
ThorVG - test (lightweigh...
by
valdir.marcos
[February 16, 2026, 11:19:41 am]
Problems in drawing an ar...
by
valdir.marcos
[February 16, 2026, 11:18:39 am]
AI to port DBDesigner For...
by
Graeme
[February 16, 2026, 10:26:15 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Memory leaks (Read 2039 times)
CanineQwer
New Member
Posts: 19
Memory leaks
«
on:
March 16, 2020, 09:37:50 pm »
I am using Lazarus 2.0.6 under Linux.
Give at least 1 reliable way to find memory leaks.
heaptrc crashes the program.
I heard about cmemtest, but I just can't find it.
* I'm testing on the simplest form with a button with a function
begin
TButton.Create (nil);
end;
Logged
Martin_fr
Administrator
Hero Member
Posts: 12142
Debugger - SynEdit - and more
Re: Memory leaks
«
Reply #1 on:
March 16, 2020, 09:51:51 pm »
Use
valgrind --tool=memcheck
You need to compile with "uses cmem". cmem must be the very first, in the uses clause of your main program.
Note, that this is going to run real slow.
You can load the output into: view > leaks and traces
Logged
Ide Tools, Code completion and more
/
IDE cool features
/
Debugger Status
CanineQwer
New Member
Posts: 19
Re: Memory leaks
«
Reply #2 on:
March 16, 2020, 11:03:55 pm »
Thank you, you helped me a lot.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Debugger
»
Memory leaks
TinyPortal
© 2005-2018