Dalija Prasnikar
Developers that extensively use interfaces in Delphi probably know about a long-standing issue with the compiler, where interface parameters declared as const or [ref] will cause a memory leak if a reference-counted object instance is… … Read more
6 months ago in Inline variables, Leaks, memory management, Parameters0
Dalija Prasnikar
In the two-part post series, The purpose of weak references – Part I and The purpose of weak references – Part II, I wrote about the purpose of weak references in automatic reference counting, as… … Read more
2 years ago in Delphi, memory management, Weak0
Dalija Prasnikar
In the first part of this post series, I covered owning and non-owning references under manual memory management, and the purpose of non-owning (weak) references in that memory model. Following the same use cases, we… … Read more
2 years ago in ARC, memory management, Strong, Weak0
Dalija Prasnikar
The terminology “weak and strong references” is commonly used in the context of automatic reference counting. In the context of manual memory management, we talk about ownership, and owning and non-owning references. While the terminology… … Read more
2 years ago in ARC, memory management, Strong, Weak0
Dalija Prasnikar
In case you missed the live session, webinar replay Mastering Delphi Memory Management where I am answering your questions about memory management is available on YouTube. Book intro by Neven Prasnikar Jr. followed by a recording… … Read more
4 years ago in book, Delphi, memory management, Webinar0
Dalija Prasnikar
Join me this Thursday, Apr 22, 2021 5:00 PM – 6:00 PM CEST for a live Q/A session about Delphi memory management. See you! Register for webinar:https://register.gotowebinar.com/register/474961949731996432Book information:https://dalija.prasnikar.i… … Read more
4 years ago in Delphi, memory management, Webinar0
Dalija Prasnikar
Manual memory management requires some thought and ceremony. It is not so much of a problem with long-lasting instances, but managing temporary local objects, especially when you need to create more than one, is a… … Read more
4 years ago in ARC, Delphi, memory management0
Dalija Prasnikar
Delphi 10.4 Sydney brings one small but rather significant change. A change in the signature of the FreeAndNil procedure fromprocedure FreeAndNil(var Obj); inline;toprocedure FreeAndNil(const [ref] Obj: TObject); inline;Wait, const means the variable i… … Read more
5 years ago in Delphi, FreeAndNil, memory management, sydney0
Dalija Prasnikar
Let’s say you have a nice, working Delphi application. One fine day, for no reason whatsoever, you decide to run your fine and bug free application with FastMM in full debug mode. Just for fun…… … Read more
5 years ago in Delphi, FastMM, memory management0
Dalija Prasnikar
As announced on previous roadmaps, the 10.4 release of Delphi is planned to have unified memory management. That means retiring the ARC compiler on mobile platforms, which will now operate under the same good old… … Read more
5 years ago in Beta, Delphi, memory management0
Dalija Prasnikar
Using reference counting classes always requires some caution. You have to pay attention to reference cycles, using interface reference for referencing such object instances, not calling FreeAndNil and more… it is quite a list…But every… … Read more
5 years ago in Delphi, memory management0
Dalija Prasnikar
If you have memory problems you should eat more… actually, I have no clue what you should do then. But if you have Delphi memory problems then Deleaker by Softanics can certainly be of assistance.Deleaker… … Read more
5 years ago in Leaks, memory management, Tools0
zarkogajic
One of the common problems we programmers face (and hopefully we are aware of) are memory leaks, or leaks of any other kind of resources. For example, Windows limit the number of GDI or USER32… … Read more
5 years ago in Delphi, memory, memory management0
gabr42
Earlier this week a long-time customer asked me why FastMM allocates large memory blocks from the top of the memory and if that option could safely be turned off. Their reasoning was that such allocations… … Read more
6 years ago in benchmarking, memory management, programming, windows0