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...