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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Pagecontrol - Tabsheet ca...
by
wp
[
Today
at 05:21:02 pm]
How To: Create and React ...
by
zxandris
[
Today
at 05:19:20 pm]
Cursor changes to arrow o...
by
atlatl
[
Today
at 05:16:44 pm]
dmg may contain virus
by
turunk
[
Today
at 05:02:19 pm]
Internal error
by
jamie
[
Today
at 04:52:07 pm]
Force parameters of my ap...
by
Ericktux
[
Today
at 04:42:12 pm]
i have function named sho...
by
Thaddy
[
Today
at 04:33:29 pm]
How to declare couple of ...
by
Thaddy
[
Today
at 04:32:12 pm]
File open or File close -...
by
Thaddy
[
Today
at 01:26:03 pm]
Forum number of posts
by
MarkMLl
[
Today
at 01:17:40 pm]
Hustle - A simple task ma...
by
cris75
[
Today
at 12:53:14 pm]
[SOLVED] DBGrid color beh...
by
lhl
[
Today
at 11:39:58 am]
How to get and use the ma...
by
Hansaplast
[
Today
at 11:38:19 am]
raylib and addons
by
wp
[
Today
at 10:16:35 am]
Creating Self Signed Cert...
by
Trax
[
Today
at 09:23:07 am]
Converting a Project from...
by
egsuh
[
Today
at 08:36:29 am]
Connection to MySQL versi...
by
anse
[
Today
at 08:09:52 am]
[SOLVED] const char** in ...
by
440bx
[
Today
at 06:34:42 am]
Can't put Lazarus in dock
by
DanielO
[
Today
at 05:07:43 am]
FPC 3.2.2 / Apple Silicon...
by
JimKueneman
[
Today
at 04:15:15 am]
Remote access to database...
by
duralast
[
Today
at 02:23:18 am]
Online Package Manager
by
diogoabel
[
Today
at 12:21:59 am]
TValueListEditor wont acc...
by
Bart
[March 17, 2025, 11:10:34 pm]
Lazarus crashes when link...
by
Mr.Madguy
[March 17, 2025, 07:35:13 pm]
how to native camera?
by
Key-Real
[March 17, 2025, 07:00:42 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Memory leaks (Read 1834 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: 10905
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
From the wiki:
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