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
Lazarus Image Editor
by
Boleeman
[
Today
at 03:46:20 am]
Splitting Picture into Qu...
by
Boleeman
[
Today
at 02:43:50 am]
The ever re-appearing /= ...
by
n7800
[
Today
at 02:13:57 am]
Ann: Deinline: a de-inlin...
by
440bx
[
Today
at 01:47:12 am]
FPC Unleashed (inline var...
by
Fibonacci
[
Today
at 01:25:07 am]
Help with OLD code
by
wp
[
Today
at 12:49:15 am]
ZeosDB and sqlite3
by
Prime
[April 11, 2026, 10:34:48 pm]
fp-h2pas: New C header tr...
by
BildatBoffin
[April 11, 2026, 07:22:29 pm]
TurboBird IBX
by
maurog
[April 11, 2026, 04:10:32 pm]
Remote desktop software i...
by
gidesa
[April 11, 2026, 02:25:43 pm]
Omitting semicolon on las...
by
Xenno
[April 11, 2026, 02:04:31 pm]
I can write your README.m...
by
domasz
[April 11, 2026, 09:53:02 am]
Can /my/ AI help me with ...
by
cdbc
[April 11, 2026, 08:59:28 am]
android attack (inc)
by
speter
[April 11, 2026, 04:19:54 am]
Little bit...
by
n7800
[April 11, 2026, 03:51:08 am]
[ANN] Unofficial FPC 3.3....
by
440bx
[April 11, 2026, 01:00:04 am]
NiceGrid component for La...
by
wp
[April 11, 2026, 12:03:57 am]
Track windows cross-platf...
by
dsiders
[April 10, 2026, 07:43:43 pm]
[ANN] PasBuild v1.8.0 Rel...
by
Graeme
[April 10, 2026, 06:43:13 pm]
Подписи кнопок панели инс...
by
Raskaton
[April 10, 2026, 06:37:48 pm]
HTTPS-сервер с ГОСТ-серти...
by
Raskaton
[April 10, 2026, 06:29:36 pm]
Strange behavior with dat...
by
JanRoza
[April 10, 2026, 06:20:38 pm]
RegExpr matchting empty s...
by
Thaddy
[April 10, 2026, 04:35:27 pm]
TLazSerial : serial port ...
by
CM630
[April 10, 2026, 03:45:42 pm]
Can't pass string to TEdi...
by
lazarusprogrammer
[April 10, 2026, 02:04:36 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Memory leaks (Read 2105 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: 12290
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