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
The Delphi 12.1 update has been released. Besides a number of bug fixes, this release also has a few new features. The most notable ones are the new Split Editor, which allows having multiple files… … Read more
8 months ago in Delphi, Quality Portal0
Dalija Prasnikar
It has been quite some time since I wrote the Catch Me If You Can post about the inability of LLVM-backed compilers to catch non-call hardware exceptions. In other words, hardware exceptions raised by code… … Read more
12 months ago in Delphi, Exceptions0
Dalija Prasnikar
Delphi 12 is in the works. One of its small features that will have a huge impact is a change in the default handling of floating-point exceptions, which will now be masked on all platforms…. … Read more
1 year ago in Delphi 12, floating-point, thread safety0
Dalija Prasnikar
Loops and anonymous methods don’t go hand in hand. Any variable that changes for each iteration will cause problems if it is used within an anonymous method. I explained the mechanism behind variable capturing in… … Read more
1 year ago in anonymous methods, Tasks0
Dalija Prasnikar
One of the more common problems that comes up in multi-threading, especially when refactoring existing code, is assigning a result obtained from asynchronous code. In other words, how do you write a function that will… … Read more
2 years ago in Asynchronous programming, Delphi, multithreading0
Dalija Prasnikar
Did you miss the DelphiCon session on “NX Horizon – The Open Source Event Bus for Delphi”? The webinar replay is now available! Code can be found on GitHub: https://github.com/dalijap/nx-horizonReplay can be found at: https://www.youtube.com/watch?v=a… … Read more
2 years ago in delphicon2023, eventbus, github0
Dalija Prasnikar
Here you can find slides from my CodeRage 2022 presentation about Challenges of Multi-threaded Programming, as well as additional links to code examples related to the presentation. Slides: https://dalija.prasnikar.info/dl/DP_CodeRage2022.pdf Additiona… … Read more
2 years ago in CodeRage2022, eventbus, multithreading, Webinar0
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
Delphi Thread Safety Patterns book is now available as paperback on Amazon, too. https://dalija.prasnikar.info/delphitspatt/While the thread safety of a particular piece of code depends on the surrounding context and how it is used, some data types… … Read more
2 years ago in book, Delphi, multithreading0
Dalija Prasnikar
One of the topics raised in yesterday’s FreeAndNil debate was using FreeAndNil in multi-threaded code for avoiding access to a dangling reference when multiple threads are accessing and using the same object instance. Problem is… … Read more
2 years ago in Delphi, FreeAndNil, multithreading0
Dalija Prasnikar
We are only few a years away from celebrating Delphi’s thirtieth birthday. Because it has been here for quite some time, many Delphi projects are far from being brand-new, and almost every Delphi developer is… … Read more
2 years ago in book, Delphi0
Dalija Prasnikar
I have published initial release of NX Horizon Event Bus for Delphi as Open Source on GitHub.Featuresimplements the publish/subscribe pattern, decoupling publishers and subscribersevents are categorized by typeany Delphi type can be used as an… … Read more
2 years ago in Delphi, eventbus0