Version 2.2.2 of my Pascal code snippets collection has just been released. Don't let the patch version number bump fool you. There are a lot of new snippets in this release. In fact, it's the first time in years that so many new snippets have been added. Nearly all the new snippets are mathematical. A few snippets were added to the Arrays category, but most got grouped into the Mathematics category. Some snippets relate to number theory while others work with numbers in different bases. However the majority relate to statistics, including functions to calculate Arithmetic, Geometric, Harmonic, Logarithmic and Power means. I'm not going to list them all here, that would be tedious. See the change log for a full list of the new functions & other changes. A couple of existing snippets have been modified, in one case to fix a bug. Unit tests have been added for every new snippet and for one existing snippet. All the new snippets compile without problem with Delphi XE...
Version 2.2.3 of my Pascal code snippets collection has just been released. Unlike the previous bumper release, this one adds compilation results with Delphi 12 for all snippets that hadn't been tested with that compiler, which was most of them. It also fixes a couple of bugs, so I recommend updating to this release. For details of the bug fixes, see the change log . If you are using CodeSnip v4.16 or later then you can update your snippets collection by using the Database | Install or Update DelphiDabbler Snippets Database menu option and following the instructions in the resulting wizard. ➤ You can find the new release on GitHub .
What a red letter day. 🎆🎇🌠For several years a nasty access violation bug has been lurking inside CodeSnip . It crashed the program when the computer was resumed from hibernation, but only sometimes. Because the bug was intermittent and required numerous hibernation / resume cycles to be run before it finally cropped up it defied diagnosis for a long, long time. Until now. Or up until someone finds my fix doesn't work for them! The bug fix release is v4.24.1 - get it from GitHub . Read on if you're interested what the problem turned out to be . CodeSnip uses a custom drawn tree view control to display the available snippets, grouped under headings. A custom TTreeNode class is used that has an extra property that references an object instance that provides extra information about the item been displayed. This information is used by the custom drawing code. The problem is that, occasionally, when waking from hibernation, Windows destroys and recreates the window handle of the...
Comments
Post a Comment